The general company's projects are utf-8 coding. Because you can switch the language of a Web page at any time. But a lot of the time some introductory projects are made with GBK or gb2312.
When you import a project encoded as GBK into a project space that is encoded as UTF-8, you will find that all Chinese are garbled. Vice versa.
There are 2 general solutions:
If only *.java appear Chinese garbled. Click window-preferences-to search for content, click content-types-Select text--Find Java source file in the following default encoding write UTF-8 or GBK, Click Update. If there are *.xml and other files garbled. And not in the list. Can add a new one.
Generally, the above can solve the problem. If not. window-preferences-Search Workspace Select the text file encoding change to the corresponding encoding.
This article from "Baidu Know" blog, declined reprint!
About importing a project eclipse garbled problem