我的这个不是一个中文乱码,而是页面输入的时候在textarea中显示 的字母不正常,当然也能看清是哪个字母,但有一个字母是看不清的,就是字母F,在textarea显示是缺少一行..请各位帮忙一下吧http://
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page contentType = "text/html;charset = gb2312" %>
<%
request.setCharacterEncoding("gb2312");
response.setCharacterEncoding("gb2312");
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>留言板</title>
</head>
<body>
<form action="messagePane.jsp" method = get name = form>
<p>输入你的名字:
<input type = text name = peopleName>
<br>
<p>输入你的留言标题:</p>
<input type = text name = "title">
<br>
<p>
输入你的留言:
<br>
<br/>
<textarea rows="10" cols="36" name = message >
</textarea>
<br>
<br>
<input type = submit value = 提交信息 name = submit>
</form>
<form action="showMessage.jsp" method = post name = form1>
<input type = submit value = 查看留言板 name = look/>
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ page contentType = "text/html;charset = gb2312" %>
<%
request.setCharacterEncoding("gb2312");
response.setCharacterEncoding("gb2312");
%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>留言板</title>
</head>
<body>
<form action="messagePane.jsp" method = get name = form>
<p>输入你的名字:
<input type = text name = peopleName>
<br>
<p>输入你的留言标题:</p>
<input type = text name = "title">
<br>
<p>
输入你的留言:
<br>
<br/>
<textarea rows="10" cols="36" name = message >
</textarea>
<br>
<br>
<input type = submit value = 提交信息 name = submit>
</form>
<form action="showMessage.jsp" method = post name = form1>
<input type = submit value = 查看留言板 name = look/>
</form>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货