Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

forcing the use of a character set

Status
Not open for further replies.

fl0ra

MIS
Jul 27, 2004
93
FR
I'm trying to force my program to run using a different character set, will this works (I wanna use ISO-8859-1 instead of the UTF-8 by default) :
javaw -Dclient.encoding.override=ISO-8859-1

Thank you guys :)
 
In the jdk1.4 API for the java.nio.Charset class ...

Every instance of the Java virtual machine has a default charset, which may or may not be one of the standard charsets. The default charset is determined during virtual-machine startup and typically depends upon the locale and charset being used by the underlying operating system.

It doesn't say if this can be forcefully changed, though.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Yeah I know, the solution might be to change the OS charset then run the application then switch the charset back...
But I do not know how to change the charset of the OS (Linux) within the shell...
Anyone?
 
sedj? You're our resident linux dude.

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Hmmm ... beyond me this one.
There is some interesting stuff here :
You might also want to check out the "locale" programme - this dumps all current locale information - not sure how you change it though !

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
ok cheers... :)
I guess I'm gonna have to go on the linux forum and ask :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top