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.
为情所困2017-06-06 09:54:30
Right click on the project, Properties, Resource, Text file encoding, Other, UTF-8
PHPz2017-06-06 09:54:30
Different projects configure different encodings. Do not configure global eclipse settings:
Right click on the project--> Properties--> Resource--> Text file encoding UTF-8/GB2312