This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Locale Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Locale" Watch "Locale" New topic
Author

Locale

Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

Hi Can someone suggest me how to set a particular locale if it is not configured on the machine:
I am developing an application in java which is suppose to be used in INDIA,
so
Locale locIN = new Locale("hi","IN");

but When i used this locIN to format the date, It shows me ???
as I am sitting in singapore so I think here local locale is chinese...

My seniors says this is the problem of setting ?
Can someone tell me how to do this setting and what is this setting ?


Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37958
    
  22
Not sure, but go through the System class to find how to get Properties, then the System class for setProperty, write and read methods. You can probably but a list of Properties in a text file and read them back into your default Properties.

Anybody else able to help?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37958
    
  22
This part of the Java Tutorials might help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Locale
 
Similar Threads
Strange problem with Resource files and I18n
Counting Number of Occurences in XML
Problem with Calendar, Locale,TimeZone
how to set the locale for display tag
Displaying date and time locale specific