Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting system-wide encoding?




On Dec 6, 2006, at 8:28 PM, Rick Mann wrote:

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.



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Setting system-wide encoding? (From: Rick Mann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.