主题:JSP中文问题求助--高手请进
大家好,
我这里有个文件send.jsp,代码如下:
<%@ page import="java.sql.*" contentType="text/html;charset=GB2312" %>
<html>
<body>
<%
request.setCharacterEncoding("GB2312");
String name = request.getParameter("name");
%>
<%= name %>
</body>
</html>
我在浏览器地址栏中输入:
http://localhost:8080/send.jsp?name=大海
为什么不能显示“大海”,而只显示????
哪位高手帮忙解决一下好吗?
谢谢
我这里有个文件send.jsp,代码如下:
<%@ page import="java.sql.*" contentType="text/html;charset=GB2312" %>
<html>
<body>
<%
request.setCharacterEncoding("GB2312");
String name = request.getParameter("name");
%>
<%= name %>
</body>
</html>
我在浏览器地址栏中输入:
http://localhost:8080/send.jsp?name=大海
为什么不能显示“大海”,而只显示????
哪位高手帮忙解决一下好吗?
谢谢