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.