When I run a java application on "Linux CentOS 7"
Charset.defaultCharset() is returning "US-ASCII".
If I pass the JVM argument -Dfile.encoding="UTF-8" I am able to change the character set to UTF-8.
But my question is how does the default character set get initialized if no parameter is set at JVM at startup.
It must be from the OS Locale or some similar setting. How do I determine which OS setting it is that gets read by the JVM?