public static String toChinese(String str) {
try {
if (str == null) {
return null;
}
else {
str = new String(str.getBytes("ISO8859_1"), "GBK");
return str;
}
}
catch (Exception e) {
return null;
}
}试试,再不行就用过滤器好了
try {
if (str == null) {
return null;
}
else {
str = new String(str.getBytes("ISO8859_1"), "GBK");
return str;
}
}
catch (Exception e) {
return null;
}
}试试,再不行就用过滤器好了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货