request如何获取汉字?
为什么这样也不行?取得汉字还有别的方法吗?
<%@page contentType="text/html;charset=gb2312"%>
<html>
<head><title>tree</title></head>
<body>
<from action="tree.jsp" method=post name=from>
<input type="text" name="boy">
<input type="submit" value="提交" name="submit">
</FONT>
<p>Get the info that the textbox submit:
<%String textContent=request.getParameter("boy");
byte b[]=textContent.getBytes("ISO-8859-1");
textContent=new String(b);
%>
<br>
<%= textContent%>
</body>
</html>