你的方法可以这样写,试试看:public String getStr(String str){
try{
str = new String(str.trim().getBytes("ISO8859_1","GBK"));
return str;
}
catch(Exception e){
}
return "null";另外可以看看以前的帖子。有说到怎么解决中文问题的。
}
try{
str = new String(str.trim().getBytes("ISO8859_1","GBK"));
return str;
}
catch(Exception e){
}
return "null";另外可以看看以前的帖子。有说到怎么解决中文问题的。
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货