tags:

views:

2332

answers:

2

What is the purpose of the system property sun.jnu.encoding? Various fragments on the web set or report it, but I can't find a definition.

+1  A: 

I believe that this value represents the system encoding, which may be different from the user encoding ("file.encoding") on some platforms. The "sun" prefix makes me suspect that this is an implementation detail specific to the Sun JRE (a quick look at an IBM 1.4 VM shows an "ibm.system.encoding" system property). I have no idea on how this might be used internally - though I'm sure a quick look through the source would yield some clues.

McDowell
+1  A: 

see http://happygiraffe.net/blog/2009/09/24/java-platform-encoding/

asdfasdg
Thanks for the link :)
Dominic Mitchell