MyEclipse import source file after Java file Chinese garbled problem, *.java file in Chinese can not display, are garbled
Workaround (found online, verified):
I. Encoding the entire project Setup UTF-8 (UTF-8 can be the largest support internationalization)
The Text file encoding in the Windows->preferences->general->workspace->text file encoding->other box is changed to UTF-8, Then click the Apply button. (can only be changed to UTF-8,GBK I have tried and can not yo)
Two. Set the Java source file encoding to UTF-8.
Windows->preferences->general->contenttypes (Some of the web is the context types, do not know whether it is a version problem, or a clerical error) Open text, select Java sourcefile, Enter UTF-8 in the Defaultencoding input box below and click Update to set the Java file encoding to UTF-8.
Java Chinese display garbled way to solve