中文2000server和中文xp是不是同一种编码??
String Cust_Sex=request.getParameter("cust_sex");//这时softname里存的是按iso8859-1理解的字符
byte[] buf2=Cust_Sex.getBytes("ISO-8859-1");//还原成浏览器发来的字节数据(按iso8859解码前的数据)
Cust_Sex = new String(buf2,"gb2312");//按gb2312重新解码
这代码在中文2000server上可以解决乱码问题,再中文xp上不行了