问题
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
回答1:
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
来源:https://stackoverflow.com/questions/40486841/java-how-to-change-the-language-of-java-util-logging-to-english