Redian新闻
>
how to set java run time locale/encoding?
avatar
how to set java run time locale/encoding?# Java - 爪哇娇娃
c*t
1
Currently, i am setting WindowsXP to be Chinese w/ English menus.
However, when I run Java or Java applications (such as DB2 tools),
it all turns up in Chinese or some square boxes. Switching back
the system to English would make all the menus/buttons to be English,
and that's what I prefer.
So the question is, how to set the Java runtime locale/encoding
such that I can run applications in English with Windows XP setting
in Chinese?
Thanks.
avatar
d*p
2
java.util.Locale.setDefault(java.util.Locale.ENGLISH);

【在 c*****t 的大作中提到】
: Currently, i am setting WindowsXP to be Chinese w/ English menus.
: However, when I run Java or Java applications (such as DB2 tools),
: it all turns up in Chinese or some square boxes. Switching back
: the system to English would make all the menus/buttons to be English,
: and that's what I prefer.
: So the question is, how to set the Java runtime locale/encoding
: such that I can run applications in English with Windows XP setting
: in Chinese?
: Thanks.

avatar
c*t
3
Note, I am running someone else's application
(actually DB2's java command center). So, I can't really add
this piece of code.

【在 d******p 的大作中提到】
: java.util.Locale.setDefault(java.util.Locale.ENGLISH);
avatar
w*c
4
if it calls java or javaw directly, maybe u can try -Duser.language=en
-Duser.region=us

【在 c*****t 的大作中提到】
: Note, I am running someone else's application
: (actually DB2's java command center). So, I can't really add
: this piece of code.

avatar
c*t
5
Sigh, thanks for the help, but it still doesn't work :(
DB2 seems to use stub executables that invokes JVM (either its own
or system's JVM). I tried to add the parameters somehow, but it
doesn't seem to work.

【在 w********c 的大作中提到】
: if it calls java or javaw directly, maybe u can try -Duser.language=en
: -Duser.region=us

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。