Login to the console (win), how does charset conversion work?
Code below, non-ascii characters output garbage - InputStreamReader in the example below does not accept charset as an argument.
BufferedReader console = new BufferedReader( new InputStreamReader(System.in));
String inp = console.readLine();
System.out.println(inp.toUpperCase());
Being OS independent, how does Java solve all the different possible encoding configurations regarding console prompt input?
Teson source
share