File.encoding JVM system properties after the start, once again unable to set the default encoding of the system impact

 Causes and solutions:

 

 https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4163515

 

 https://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding/362006#362006

 

file.encoding who set up?

  First file.encoding is a system property. You may start before the JVM settings such as:

  java -Dfile.encoding=UTF-8 xxx.class

  Another way is to change the coding of the operating system, because when you start the JVM If you do not set this property, the default is the operating system used

  Encoding.

 

Guess you like

Origin www.cnblogs.com/yvkm/p/11469298.html