tomacat5.028+Eclipse3.2+structs+sqlserver2000 中文乱码
用java开发一个简单的web应用,tomcat的server.xml中设置URIEncoding= "GBK ",JSP页面中也加了如下语句:
1、 <%@ page contentType= "text/html;charset=GBK " language= "java " pageEncoding= "GBK " %>
2、 <META http-equiv=Content-Type content= "text/html; charset=GBK ">
每次都是第一次启动tomcat时显示正确,在“包资源管理器”工作区中点“刷新”后,再次打开浏览器时出现乱码,而且编译后的jsp里中文也是显示乱码,折腾一天了,哪位高手帮帮我吧,非常感谢!
以下是bbsLogin.jsp的代码:
其中:“用户名”对应的乱码是:鐢ㄦ埛鍚嶏細
“验证码”对应的乱码是:楠岃瘉鐮侊細
——---------------------------
<%@ page contentType= "text/html;charset=GBK " language= "java " pageEncoding= "GBK " %>
<HTML>
<HEAD>
<TITLE> 教育在线论坛 </TITLE>
<META http-equiv= "Content-Type " content= "text/html; charset=GBK ">
</HEAD>
<LINK
href= "images/style.css " type=text/css rel=stylesheet>
<BODY>
<TABLE style= "MARGIN-TOP: 10px " width=700 align=center border=0>
<TBODY>
<TR>
<TD align=middle> <IMG SRC= "images/logo.jpg " BORDER=0 > </TD>
</TR>
<TR>
<TD align=middle> <IMG height=3 src= "images/white.gif " width=10> </TD>
</TR>
</TBODY>
</TABLE>
<TABLE width=800 align=center border=0>
<TBODY>
<TR>
<TD width=99> </TD>
<TD>
<TABLE height=107 cellSpacing=0 cellPadding=0 width=636 border=0>
<FORM name=FromLogin action= "login.do " method=post>
<TBODY>
<TR>
<TD background= "images/202.jpg " height=107 colSpan=2>
<IMG height=107 src= "images/201.gif " width=21>
</TD>
<TD> </TD>
<TD> </TD>
<TD> </TD>
<TD vAlign=top background= "images/202.jpg ">
<TABLE style= "MARGIN-TOP: 25px " cellSpacing=0 cellPadding=0
width= "100% " border=0>
<TBODY>
&n