2013-03-22

How to set encoding in Eclipse

When we using Eclipse to write program if you use language which is other than english, let's say using mongolian to write comment, later it becomes unreadable. Forexample write something in Mongolian, before saving it:

After saving, if you open that file:

In this situation in Eclipse, choose from "References" highlighted menu "Windows", then make changes like following picture.

Nature of this problem is this: If you save any file, it will be saved by using encoding ANSI and ANSI only support english language and some other characters. So if we write mongolian characters, then it can't recognize all of them. But if you change encoding to UTF-8, it recognizes mongolian characters because this encoding includes them and saves them all correctly.

No comments:

Post a Comment