Eclipse import project garbled (Chinese garbled), eclipse garbled
1. The encoding is incorrect.
A. Change the code for a file or project:
Move the mouse to the project name or file name, right-click-> Properties-> Resource-> Text file enCoding-> Change enCoding (GBK, UTF-8, etc.)-> Apply-> OK to exit
B. Modify the encoding of the entire namespace.
Eclipse menu bar-> Window-> Preferences (preferences is generally used to modify the location of various eclipse settings) -> General-> Workspace-> text file encoding-> Change encoding (GBK, UTF-8, etc.)-> Apply-> OK exit
C. Modify the encoding of a specific type of files (such as xml files and java files) (not affected by the namespace encoding)
Eclipse menu bar-> Window-> Preferences-> General-> Content types-> select the file type in the right view-> Select language in Default enCoding-> Update-> OK to exit
Note: If the drop-down menu bar does not have the language type you want, you can enter it on your own keyboard. If the language type is not changed, eclipse will naturally report an error. If no error is reported, you can change the language type.
2. maven Problems
Eclipse menu bar-> Window-> Preferences-> Maven-> Installations-> User Settings-> import the settings. xml file of maven-> Refresh
But why does maven cause garbled Characters --
3. There may be conflicts between the two projects in one workspace using different encoding methods. You can try not to put it in a workspace to see if it can solve the problem.