jsp中 如何传递中文参数 且让接收端能正确识别并显示 谢谢各位(是不是很简单)?
p559 2003-04-02 04:16:47 以下为提交表:
************************************************************************
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test1</title>
</head>
<body>
<form name="form" method="post" action="test.jsp">
<input name="name" type="text" id="name">
<input type="submit" name="Submit" value="提交">
</form>
</body>
</html>
************************************************************************
当在文本框输入中文并提交时,在以下的页面输出发现乱码。请问如何解决??万万分感谢!!!
*********************************************************************************
<%@ page contentType="text/html; charset=GBK" language="java" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>test</title>
</head>
<body>
<form name="form" method="post" action="test.jsp">
<input name="name" type="text" id="name">
<input type="submit" name="Submit" value="提交">
</form>
</body>
</html>