eclipse introduces other people's project utf-8 is still garbled

1. We introduced the project into eclipse (I haven't encountered android studio, but the principle is the same), but the Chinese characters are garbled, and then it's very fucked up. We can only use some text tools to view the annotations. . . . And your compilation environment is obviously utf-8, all of them are utf-8, why not? ?

Because, fucking others may compile gbk, you know? ? ? You have been tricked by others. . . The modification method is: Window-->preference---->

general----->content type------------>Text--------java source file and then look at the encoding method below, if it is utf-8, you can change it Into gbk and then try to update. . . If it works, congratulations, but after you modify this, the Chinese characters of your other projects will be garbled. . You can only jump back and forth to modify it. . . .

Original link: https://blog.csdn.net/qq_34723470/article/details/53408765

Guess you like

Origin blog.csdn.net/wzhrsh/article/details/127234180