This afternoon tangled up this garbled question. I'm almost drunk.
There are many similar problems on the Internet, similar solutions.
As for effectiveness, it is actually more of a fortune. Because who knows the encoding mechanism of eclipse.
Import other people's projects, inevitably encountered a few Chinese characters. What do I do when I meet you.
1. First check if the original. zip or. tar file is damaged. Method: After extracting, open the. java file with Notepad. No garbled description of the file is not compromised. Save As to see how it is encoded in a (utf-8 or other).
2. After the package is imported, when the JRE environment is configured, right-click the project to see its default encoding (General Utf-8 or GBK).
3. If the. java file opens with garbled characters, right-click the file, Properties/resource, change the text file Coding to a mode, refresh the project, and then open it. If not, you can change to B mode again.
Above basic can solve garbled problem.
Ask me why I failed to summarize.
and ask the great God for guidance.
Ps:a, B way more: Utf-8 or GBK
Solutions to the problem of Eclipse Chinese garbled