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.

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

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

-Dfile.encoding=UTF-8
Drop me comments if something is not clear.
Happy Learning !!
Leave a Reply