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

前端 未结 3 1296
生来不讨喜
生来不讨喜 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:03

    I suspect that the correct solution to this problem would be to provide a new Locale variant such as (for example) en_US_mil.

    [_[_]]
    

    This can be done by implementing classes via the java.util.spi and java.text.spi service mechanisms.

    This topic is mentioned on the ICU website.

提交回复
热议问题