Today reinstall the system, after the installation of the new MyEclipse, after the import of the project, there has been garbled problem. The garbled question is mainly a comment in the Java class, but the Chinese characters in the JSP page are intact:
Right-click on the project, view the encoding format of the project, UTF-8, the Java file directly open with Notepad, no problem, no garbled, check the format of Notepad, GBK, it seems myeclipse cannot parse the reason for the Chinese character is because the Java file encoding format is not GBK, On the network, we found that the default encoding format for writing Java files in MyEclipse is GBK, so you can change the default encoding format of Java to GBK. The steps are as follows:
Windows--->Perfences-->
After the modification, the Chinese annotation in the Java file can be displayed normally.
MyEclipse of Chinese characters in Java class after importing a project in a program (resolved)