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