System.getProperty("file.encoding");
//打印出所有与Java相关的系统信息
System.getProperties().list(System.out);
System.getProperty("file.encoding");
//打印出所有与Java相关的系统信息
System.getProperties().list(System.out);
转载于:https://my.oschina.net/u/1024333/blog/490727