日期:2014-05-18  浏览次数:20637 次

linux下的中文乱码(jboss4+oracle10g)\
为何包含jsp文件,在前面加上, <%......charset= "gb2312 "%> ”,则正常.
如果包含的是.html文件,在前面加
<META   http-equiv=Content-Type   content= "text/html;   charset=gb2312 "> 还是乱码?(不加也乱码).
-------所以只好都把.html文件改为.jsp,再在前面加 <%......charset= "gb2312 "%> 了.有没有更好的办法?


------解决方案--------------------
<META http-equiv=Content-Type content= "text/html; charset=UTF-8 ">
<META http-equiv=Content-Type content= "text/html; charset=GBK ">
这两个都试一试,应该有其中一个一定行的