Eclipse solves the problem of Chinese garbled characters in .java files

If there is a Chinese garbled problem in the eclipse workbench.Java file, quickly solve it through the following two steps:

1. Select Preferences under Windows

 2. Select Content Types under General, java Source File under Text, click *.java, enter GBK in defualt encoding, click Update, and finally click Apply and Close 

Guess you like

Origin blog.csdn.net/qq_53376718/article/details/127717370