Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Locale

 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Campbell Ritchie
Sheriff
Posts: 48441
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48441
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This part of the Java Tutorials might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic