matvey-kazakov / neerc-soft

Automatically exported from code.google.com/p/neerc-soft
0 stars 0 forks source link

Fix encoding in console #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
For Windows console encoding should be CP866.

Original issue reported on code.google.com by Mandri...@gmail.com on 20 Oct 2009 at 12:38

GoogleCodeExporter commented 9 years ago
this is a one-line fix to place in main():

System.setOut(new PrintStream(System.out, true,
System.getProperty("console.encoding", "cp866")));

for other systems other encoding could be set via -Dconsole.encoding= parameter 
in
startup script.

Original comment by zib...@gmail.com on 20 Oct 2009 at 1:01

GoogleCodeExporter commented 9 years ago
Now encoding can be specified in log4j.xml

Original comment by Mandri...@gmail.com on 20 Oct 2009 at 1:12

GoogleCodeExporter commented 9 years ago

Original comment by Mandri...@gmail.com on 20 Oct 2009 at 10:40

GoogleCodeExporter commented 9 years ago
Fixed and verified on Linux and Windows.

Original comment by Mandri...@gmail.com on 20 Oct 2009 at 11:41

GoogleCodeExporter commented 9 years ago
Fixed in r68

Original comment by Mandri...@gmail.com on 21 Oct 2009 at 2:15