How to get console (cmd.exe in windows, linux shell, or eclipse console output) charset encoding?
java.nio.charset.Charset.defaultCharset()
seems to be only for input/output files, not console.
In general: you'd have to ask the shell what charset it is currently using to display characters.
Guessing not knowing: there is no standard way in Java as (I guess) there's no standard for consoles to report the actual charset. We'll have to detect the actual operating system or console provider (eclipse, ...) and use their specific functionalities to get the name of the actual charset.