为什么JSP里有的中文可以显示,有的是乱码呢?
i9u 2003-07-08 11:22:47 都用同样的函数处理过的
public static String toChinese(String strvalue) {
try {
if (strvalue == null) {
return null;
}
else {
strvalue = new String(strvalue.getBytes("ISO8859_1"), "GBK");
return strvalue;
}
}
catch (Exception e) {
return null;
}
}
有的中文可以正确显示,有的是乱码,比如超级联赛,为什么呢?