Is there a way to detect the character encoding set in t开发者_Python百科he terminal which is calling my Java program? In Windows I can call the \"chcp\" tool and parse the output.