<%@ page language="java" pageEncoding="gbk"%>
<%
String errmsg="传递的中文";
response.sendRedirect("test1.jsp?errmsg="+java.net.URLEncoder.encode(errmsg));
%>
接收参数文件
<%@ page language="java" pageEncoding="gbk"%>
<%
String errmsg=new String((request.getParameter("errmsg")).getBytes("ISO-8859-1"),"GBK");
out.print("errmsg="+errmsg);
%>
(转自csdn孤毒天蝎的博客)
<%
String errmsg="传递的中文";
response.sendRedirect("test1.jsp?errmsg="+java.net.URLEncoder.encode(errmsg));
%>
接收参数文件
<%@ page language="java" pageEncoding="gbk"%>
<%
String errmsg=new String((request.getParameter("errmsg")).getBytes("ISO-8859-1"),"GBK");
out.print("errmsg="+errmsg);
%>
(转自csdn孤毒天蝎的博客)