How do I change the default locale settings in Java to make them consistent?

前端 未结 3 1323
生来不讨喜
生来不讨喜 2021-01-14 02:41

I\'m looking for a set of command line parameters that will allow me to force a specific set of locale settings for a java application.

Let\'s say that I\'m not abl

3条回答
  •  感动是毒
    2021-01-14 03:24

    Nice, i was interested about the same thing but so far I have only a partial solution:

    user.timezone=UTC
    user.country=CA
    user.variant=
    user.language=en
    file.encoding=utf8
    

    You can use Canada, because it one of the countries using the ISO 8601 format.

提交回复
热议问题