1. Incorrect encoding
A. Change the code for a file or a project:
Move the mouse to the project name or file name, right-->properties->resource->text file enCoding, change encoding (GBK, UTF-8, etc.)->apply->ok exit
B. Modifying the encoding of the entire namespace
Eclipse Menu Bar->window->preferences (Preferences is generally the place to modify various Eclipse settings)->general->workspace->text file encoding, change encoding (GBK, UTF-8, etc.)->apply->ok exit
C. Modifying the encoding of a particular type of file (such as an XML file, Java file type) (not affected by namespace encoding)
Eclipse Menu bar->window->preferences->general->content types-> in the right view, select the language in the default encoding file type- >update->ok exit
Note: If the drop-down menu does not have the type of language you want, you can use your keyboard to enter it. If you do not change the language type, eclipse will naturally error, no error indicates that you can change the language type.
2.maven problem
Eclipse Menu bar->window->preferences->maven->installations->user settings-> importing Maven settings.xml files- >refresh
But why does maven now cause garbled don't know--
3. Two projects different coding methods put into a workspace there may be conflicts. Try not to put it in a workspace and see if you can solve the problem.
Eclipse Import Project garbled problem (Chinese garbled)