转换一下编码!
<%!
public String getStr(String str) {
try {
String temp_p = str;
byte[] temp_t = e.getBytes("ISO8859-1");
String temp = new String(temp_t);
return temp;
} catch(Exception e) {
}
return null;
}
%>
<%
String exam=request.getParameter("exam");
exam = getStr(exam);
%>
<%!
public String getStr(String str) {
try {
String temp_p = str;
byte[] temp_t = e.getBytes("ISO8859-1");
String temp = new String(temp_t);
return temp;
} catch(Exception e) {
}
return null;
}
%>
<%
String exam=request.getParameter("exam");
exam = getStr(exam);
%>
request.setCharacterEncoding("编码方式");
然后再
request.getParameter("");
两个页面要一样的编码方式就应该没有问题。