1, encoding a modified class files: Windows-Preferences-General-Content Types- selected text under the Java Source File in Default encoding below the input GBK click Update
2, modify the entire coding workspace: Windows-Preferences-General -Workspace- to the Text file encoding [UTF8 or GBK) -----> encoding format introduced according to engineering change]
3, the modified encoding single project: right-click the project -Preferences-Resource- Text file encoding changed to UTF-8
Reprinted:
https://blog.csdn.net/qq_28566287/article/details/80290048