I am writing very simple console application in Java.
The problem is that I need to ouput cyrillic and estonian non-utf8 symbols to console, but in Windows I get bunch of strange symbols and in MacOsX I get only ???? instead of something more readable.
How Can I achieve my aim?
--UPDATE 1--
locale gave me:
LANG= LC_COLLATE="C" LC_CTYPE="UTF-8" LC_MESSAGES="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_ALL=
Seems I am stuck with that UTF-8 thing %)
Strange idea:
Is there any way to get a console from eclipse and use it outside of eclipse?
javac
will assume it's the system default encoding, utf-8. If it's something different you have to use the-encoding
parameter. Otherwise the compiler can't know what characters your source files have. – Joni