Public String translate (String str) {
String tempStr = "";
try {
tempStr = new String(str.getBytes("ISO-8859-1"), "GBK");
tempStr = tempStr.trim();
}
catch (Exception e) {
System.err.println(e.getMessage());
}
return tempStr;
}

posted on 2021-01-11 09:52  Wang梦怡  阅读(108)  评论(0编辑  收藏  举报