fusesource / jansi

Jansi is a small java library that allows you to use ANSI escape sequences to format your console output which works even on windows.
http://fusesource.github.io/jansi/
Apache License 2.0
1.11k stars 140 forks source link

Show non ascii issue on Windows #79

Closed hboutemy closed 7 years ago

hboutemy commented 7 years ago

see https://issues.apache.org/jira/browse/MNG-6205 I don't have any solution yet, but at least a simple sample program

gnodet commented 7 years ago

See http://stackoverflow.com/questions/24803733/default-character-encoding-for-java-console-output I just debugged and found out that the System.out PrintStream is using IBM850 encoding while the default charset (so the AnsiConsole.out encoding too) is windows-1252.

hboutemy commented 7 years ago

wow, great fix: I just tested it and it works on my french setup (CP-1252) thank you