search

Home  >  Q&A  >  body text

java - eclipse two projects with different encodings, how to coexist

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.

给我你的怀抱给我你的怀抱2796 days ago903

reply all(3)I'll reply

  • 为情所困

    为情所困2017-06-06 09:54:30

    Right click on the project, Properties, Resource, Text file encoding, Other, UTF-8

    reply
    0
  • PHPz

    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

    reply
    0
  • 巴扎黑

    巴扎黑2017-06-06 09:54:30

    Try NOTEPAD++

    reply
    0
  • Cancelreply