One of my eclipse projects is my own project, which is utf-8
The other one is someone else's project that I copied, gb2312,
The problem is that the project I set to utf-8 gb2312 has garbled characters. The project I set to gb2312 utf-8 has garbled characters.
Right click on the project, Properties, Resource, Text file encoding, Other, UTF-8
Different projects configure different encodings. Do not configure global eclipse settings:
Try NOTEPAD++