How to display non-english unicode (e.g. Chinese) characters in eclipse

If you are non-English speaking country native, and you are testing your application for your locale then you may face difficulty in testing your application through eclipse console. By default, Eclipse converts non-English characters as question marks (?) or some weird characters because by default eclipse’s console encoding is Cp1252 or ASCII, which is unable to display other non-English words.

You can easily change the default encoding to UTF-8 i.e. Unicode by setting below option.

Eclipse change default encoding to unicode
Eclipse change default encoding to unicode

Now when you use any non-English character in IDE and even print in console, it works perfect.

Successful Eclipse Unicode Translation
Successful Eclipse Unicode Translation

Here If you do not add Unicode support then above program will look like this.

Incorrect Eclipse Unicode Translation
Incorrect Eclipse Unicode Translation
If you want to apply Unicode UTF-8 for all projects all the time, then you should set it in eclipse.ini file.


Drop me comments if something is not clear.

Happy Learning !!

Leave a Reply

Most Voted
Newest Oldest
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.

Our Blogs

REST API Tutorial