Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
like image 385
mynameisJEFF Avatar asked Nov 08 '16 12:11

mynameisJEFF


People also ask

How can I change the language of Java?

Go to app > res > values > right-click > New > Value Resource File and name it as strings. Now, we have to choose qualifiers as Locale from the available list and select the language as Hindi from the drop-down list.


1 Answers

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
like image 83
RealHowTo Avatar answered Oct 02 '22 13:10

RealHowTo