字符编码转换

中文乱码

new String(str.getBytes("iso-8859-1"), "UTF-8");   

查看当前环境字符编码

System.getProperty("file.encoding")

原文地址:https://www.cnblogs.com/it38/p/5670449.html