1. Modify the Eclipse Default Workspace encoding method. Click "Windows"-"preferences", pop-up window, click "General"-"workspace", so that each time you write
The default text file encoding method is used UTF-8
2. Modify the project coding method. Move the mouse to the project name, right-click, select "Properties", Pop-up dialog box, select "Resources", there is a "text file
Code, select the encoding you want to use
3. Modify the file encoding method. Move the mouse to the file, right-click, select "Properties", Pop-up dialog box, also "resources" under a "Text file encoding"
, select the encoding you want to use
4. Modify the default encoding for a class of files. Window-preferences, pop-up dialog box, select General-Content type, select the type you want to modify on the right,
Select the encoding you want to use at the "Default encoding" below
Set the Eclipse encoding method