Determining default character set of platform in Java

Posted by Anand on Stack Overflow See other posts from Stack Overflow or by Anand
Published on 2010-04-20T17:50:32Z Indexed on 2010/04/20 18:33 UTC
Read the original article Hit count: 585

Filed under:
|

I am programming in Java

I have the code as:

byte[] b = test.getBytes();

In the api it is specified that if we do not specify character encoding it takes the default platform character encoding.

What is meant by "default platform character encoding" ?

Does it mean the Java encoding or the OS encoding ?

If it means OS encoding the how can i check the default character encoding of Windows and Linux ? Is there anyway we can get the default character encoding using command line ?

© Stack Overflow or respective owner

Related posts about character-encoding

Related posts about java