I am programming in Java
I have code like:
byte[] b = test.getBytes();
The api states that if we do not specify a character encoding, it accepts the platform character encoding by default.
What is meant by "default character encoding"?
Does this mean Java coding or OS coding?
If this means OS encoding, how can I check the default encoding for Windows and Linux? In any case, can we get the default encoding using the command line?
java character-encoding
Anand sunderraman
source share