mynameisJEFF mynameisJEFF - 11 months ago 109
Java Question

Java: How to change the language of java.util.logging to English?

I have java.util.logging to print output to a file. It works fine. However, the messages contain chinese characters which correspond to the log level and the time the messages are logged.

How can I make it print english instead of chinese characters ?

This is what the current messages look like

11月 08, 2016 8:28:03 下午 mySamples.testing.TestingFile errorFunction
資訊: Exception: 123

Answer Source

Start your application by passing the language on the command-line to override the current default language of the OS.

java -Duser.language=en MyApplication