I noticed that the JVM, by default, provides the following system
properties:
file.encoding=MacRoman
sun.jnu.encoding=MacRoman
In this day and age, I'm surprised Mac OS X's Java isn't UTF-8
already. But I'd like to set the encoding for ALL jvms
instantiated, regardless of how (via java, or javac calls, or as
applet containers, etc), to utf-8 (assuming no command-line
parameters are supplied to override the system-wide default).
Is there a file somewhere that I can modify to change this? Or is
it hard-coded in the JVM code itself?
What problems do you actually have with MacRoman? If you aren't
running into it's probably a 'if it ain't broke don't fix it'
situation isn't it? It's a risky change since you might mess things
up for all jvm's. If it doesn't fix a problem why do it?
I don't think there is a way to change this for the scope you want.
If there were it would probably be located in a properties file
somewhere like
/System/Library/Frameworks/JavaVM.framework/Home/lib
it will probably require root permissions to make any changes if you
do find a properties setting to control this. I'd still suspect there
isn't one.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden