How eclipse implements Bulk-modified file encoding

Source: Internet
Author: User

http://blog.csdn.net/haorengoodman/article/details/38493007

In the ECLIPSE+MYECLIPSE environment, open a JSP file, often found that Chinese characters can not be displayed, right click to view the file properties, found that the character encoding property of the file is iso-8859-1.
The current solutions are:
1. Manually change the file attributes to GBK, each file must be set, very troublesome.
2. Do not edit JSP in Eclipse, switch back and forth in two environments, also very troublesome
3. Add the pageencoding directive to each JSP to explicitly specify the encoding. The problem is that it is reasonable and necessary for a standalone JSP to be added to this directive, but it is too redundant for the included JSP to be added to the problem that is displayed in eclipse.
The crux of the problem is: JSP if there is no pageencoding,eclipse in the default 8859 code to edit the JSP, how to change the default encoding to GBK code?

Problem solving:
Content Types, General, Windows-Preferences
In the right window, click "Text" Select JSP---Default Encoding can modify the JSP file encoding
Files in other formats, and so on.

How eclipse implements Bulk-modified file encoding

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.