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 default locale




On 23/12/2004, at 9:16 PM, Henry Story wrote:

I know one can set the default input/output encoding using "-Dfile.encoding=UTF-8" on the command line. Is the default encoding dependent on some environmental variable such as LANG. "export LANG=en_US.UTF-8" does not seem to work.

ok, there's a two Java properties that you can set, unfortunately which two depends on the VM version - I think it's a pre 1.3/post 1.3 split but I can't find my notes as to what exactly that is - you can set all three of these values and get the right result everywhere...

-Duser.language=en

-Duser.region=US
-Duser.country=US

it's the last two (I think) that are the VM dependent ones.

user.language is pretty obvious, the region is slightly less so, but most of the details for these values can be found in the notes with java.util.Locale.




cheers,

dean perry
abstract plane pty. ltd.
<x-tad-smaller><http://www.abstractplane.com.au>
internet broadcasting, QuickTime Vdig for Windows, Vdig Xtra for Director
</x-tad-smaller>
 _______________________________________________
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 default locale (From: Henry Story <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.