Chinese garbled solution to the Eclipse project import appears

When using the Eclipse development often encounter Chinese garbage problem, there will be Chinese garbage problem especially when someone else's project to import to your computer to view or change! In general this situation is due to set the Eclipse project development and selection of the encoding format you use in the encoding format inconsistencies caused this small series will be garbled he often encountered some solutions summary, you want to be help:

Garbled as follows:

method one:

1, right-click the project --- Properties --- Resource --- Text file encoding:

Coding edits for individual items Note:

2、File---Properties---Text file encoding:

Note: This is the way you can set the default programming language Eclipse

 3. Right-click the file you want to modify --- Properties:

Note: Modify encodes a single file

Method Two:

1、Window---Preferences---General---Content Types---Text:

Note: This operation changes the entire Eclipse encoding format, which may cause the project to import successfully solve the garbage problem, however their own original works in the Chinese has become garbled

After small series In the second method, is found to modify the UTF-8 will be garbled, check for a long time and found someone else is compiled GBK, modified to GBK, garbled resolved, then congratulations, you put good this modification yourself Chinese garbled other items will only be jumping back and forth modified:

Method three:

1、Window---Preferences---General---Workspace---Text file Encoding:

Note: The encoding modified workspace

Published 153 original articles · won praise 215 · views 180 000 +

Guess you like

Origin blog.csdn.net/qq_42680327/article/details/104830690