1. Windows->preferences ... Open the Preferences dialog, navigate to the left navigation tree, navigate to General->workspace, right text file encoding, select Other, change to UTF-8, and later create a new project in its Properties dialog box, text file Encoding is the UTF-8.
2, windows->preferences--> general->content Types, right context Types tree, click the text, select Java Source File, the following default Enter UTF-8 in the Encoding input box and click Update to set the Java file encoding to UTF-8. Other Java application development related files such as: properties, XML, etc. have been specified by the Eclipse default, respectively, Iso8859-1,utf-8, such as the development of the need to change the encoding format can be specified here.
3 Eclipse Settings The new JSP file is encoded as "UTF-8":windows-->preference--> Web-->jsp files, we can see that the default JSP file character encoding is iso-8859-1 (ISO Latin-1):
Modify to UTF-8
Set the Eclipse encoding method