Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display Chinese comment in Eclipse editor

I'm working in a project that have Chinese character that I want to understand. So I want to change the character format to display these Chinese character.

What I have tried:

  1. Window - Preferences - General - Content Type - Change Default

  2. Encoding to UTF-8 Window - Preferences - General - Workspace - Text file encoding change to UTF-8

But seem like it's not work. See the images for more detail.

Before change to UTF-8:

enter image description here

After changed to UTF-8 it's look something like this:

enter image description here

One more problem is the change also effect to git status.

So my main question is how can I display the Chinese character in Eclipse editor (without changed git status).

Thanks.

Addtional information: when open file by Notepad++ the Chinese character show correctly.

like image 567
gamo Avatar asked Aug 04 '26 12:08

gamo


1 Answers

It's depending on the encoding when the file saved.

Try change to GBK , ISO-8859-1 , GBK2312. And you also can try copy content from Notepad++ to IDE.

Hope to help you.

like image 148
star Avatar answered Aug 06 '26 02:08

star



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!