1,<%@ page contentType="text/html; charset=GBK" language="java"
2, <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
2, <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
String name=request.getParameter("?????");
name=new String(name.getBytes("iso-8859-1"),"gb2312");
将你得到一串汉字由上面的语句转换一下
放在网页头下面这句话到你要用的地方。
String name=request.getParameter("?????");
byte a[] = name.getBytes("ISO-8859-1");
name = new String(a);
这样就可以解决汉字的问题。