Eclipse Chinese garbled problem solution

Problem one: Eclipse, README.md Chinese garbled problem

Insert picture description here
Solution: In
Eclipse-> Window-> Preferences
Insert picture description here
Preferences-> General-> Workspace, change the default encoding GBK of Text file encoding to Other, and select UTF-8.
Insert picture description here
Effect picture: The
test effect is normal, which can solve some garbled problems.
Insert picture description here

Problem 2: In Eclipse, the problem of Chinese garbled .java files

Insert picture description here
Solution: In
Eclipse-> Window-> Preferences
Insert picture description here
Preferences-> General-> Content Types, set the default encoding of Java Source File to GBK (or other encoding format you need to set)
Insert picture description here
Effect picture: The
test effect is normal, but Solve some garbled problems.
Insert picture description here
See:

Published 73 original articles · won praise 2 · Views 3154

Guess you like

Origin blog.csdn.net/anniewhite/article/details/105447113