你在获取页面加上这句话就可以了....
------解决方案--------------------public String getStr(String str)
{
try{
String temp_p=str.trim();
byte[] temp_t=temp_p.getBytes( "ISO8859-1 ");
String temp=new String(temp_t);
return temp;
}
catch(Exception e){
return "NULL ";
}
}
掉用这个函数,+页面的编码设置应该可以,GB2312或者 utf-8