是不是该这样写:
String pname1 =new String(pname.getBytes("ISO-8859-1"));其实有一种简单的方法:
request.setCharacterEncoding("gb2312");//对请求进行统一编码
String pname = request.getParameter("p_name");
就可以了。我觉得《JSP应用开发详解》(第二版) 电子工业出版社  挺好的,写得很详细