java获取系统字符编码

System.out.println(System.getProperty("file.encoding"));