简单的
jsp中文乱码,查了很多文章,还是不行啊
环境:Netbeans5.5
查了很多文章,还是不行啊
把GB2312换成UTF-8业不行
<%@page contentType= "text/html "%>
<%@page pageEncoding= "GB2312 "%>
<head>
<meta http-equiv= "Content-Type " content= "text/html;charset=GB2312 ">
<title>
</tile>
</head>
<HTML>
<BODY>
</FONT> <FORM action= "1.jsp " method=post name=form>
性别:
<input name= "r1 " type= "radio " value= "男 "> 男
</BODY>
</HTML>
------解决方案-------------------- <%@page contentType= "text/html;charset=gb2312 "%>
<head>
<meta http-equiv= "Content-Type " content= "text/html;charset=GB2312 ">
<title>
</tile>
</head>
<HTML>
<BODY>
</FONT> <FORM action= "1.jsp " method=post name=form>
性别:
<input name= "r1 " type= "radio " value= "男 "> 男
</BODY>
</HTML>
------解决方案--------------------1、刚才说的配消息资源文件
2、添加字符过滤器