tomcat6(SSH2)
在html页面显示中文乱码。
非要加上 <%@ page contentType="text/html;charset=GB2312"%>后保存为jsp文件才能正常显示中文。
但有些页面由于某些原因我不能保存为jsp页。
已经使用了spring的过滤器
[code="java"]
SetCharacterEncoding
org.springframework.web.filter.CharacterEncodingFilter
encoding
gb2312
SetCharacterEncoding
/*
[/code]
html页面也加入了
[b]问题补充:[/b]
我用工具查看了header信息
Content-Type: text/html;charset=ISO-8859-1
与html文件中的
不一致。
tomcat 需要解释html文件吗?不是应该直接就返回请求。怎么header会变呢?