Set myeclipse new file default encoding is UTF-8__ encoding

Source: Internet
Author: User

Window---preferences--search jsp--Press JSP to modify encoding

-------------------------------------------------------------

There are three places to change the encoding settings:

1.

window--"preference--" general--"contenttype

then expand each subkey in the content types and enter "UTF-8" in the Defaultencoding, and then click Update


2.

window--"preference--" myeclipse--"Filesand Editor

Change the "Encoding" of each subkey to "ISO 10645/unicode (UTF-8)" or "Chinese,nationalstandard", point Applay,

The document types that are created later are UTF-8 formats.

3 in order to not appear in the project ExtJS Chinese garbled problem, it is recommended to change the MyEclipse workspace settings to UTF-8 encoding

window--"preference--" general--"workspace--" Textfiles encoding--"other choice UTF-8

In this way when the JS code is loaded JS code and JSP encoding the same will not appear garbled, or ExtJS effect can not display the problem

(MyEclipse6.0 version is window--"preference--" myeclipse--"files andeditors the following CSS, DTD, HTML, JS, JSP ecoding changed to UTF-8)

Transfer from http://blog.csdn.net/zouxuhong/article/details/7311590

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.