Hi,
it took me a while and finally a look into AnsiConsole's source to figure it out, so I am documenting it here, maybe it helps others in future:
normal ms windows console does not seem to output non-ASCII java characters well, try outputting e.g. the chars "ÄÖÜ üöä" and you'll see what I mean. For making this work with System.out you can do
System.setOut(new java.io.PrintStream(System.out, true, "CP850"));
as found everywhere in the web, unfortunately this is not supported jansi's AnsiConsole in any way directly (i.e. using AnsiConsole out() nor AnsiConsole.systemInstall()), so you have to do:
PrintStream ps = new PrintStream(AnsiConsole.out(), true, "CP850");
and then use ps everywhere you would have used AnsiConsole.out() or System.out. (after using systemInstall()).
This issue was brought up in this list some time ago and no replies to it, so probably it won't happen, but my suggestion is to extend the API with
public void AnsiConsole.systemInstall(String codePage) and
public
PrintStream AnsiConsole.getOutWithCodePage(String codePage)
cheers,
christian