Solutions garbled characters appear in java class after Eclipse project import

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

Released three original articles · won praise 0 · Views 201

Guess you like

Origin blog.csdn.net/qq_39433354/article/details/103926516