"Javaweb" modifies the default encoding for new JSPs in eclipse for Java EE, avoiding the problem of encoding each new one

Source: Internet
Author: User
Tags dreamweaver

The default encoding for new JSPs in Eclipse for Java EE is iso-8859-1,

This is very distressing, every time you create a new JSP to press CTRL+F, all iso-8859-1 replaced by Utf-8, just can.

Specific example:


What age is this? The default encoding for the 2010 published Dreamweaver CS4 is Utf-8, which is no longer the GBK of Dreamweaver 8. What's the age of this, Eclipse for Java EE is not internationalized?

Fortunately, this thing can be as modified, choose Windows->perference, in the popup window input JSP input, the encoding from iso-8859-1 to Utf-8, modified after the new JSP's default encoding is Utf-8.


Of course, at the same time remember to set your default project properties to be utf-8 instead of the default GBK Oh! This setting is also set in general in preference so that the default code for your new Java EE project is utf-8


"Javaweb" modifies the default encoding for new JSPs in eclipse for Java EE, avoiding the problem of encoding each new one

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.