<%@ page contentType="text/html;charset=gb2312" %>
<html>
<TITLE>复件 网页1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<body>
我现在测试中文乱码的问题<% request.setCharacterEncoding("gb2312");
response.setCharacterEncoding("gb2312");
%>
<%@ include file="/head/head.html" %>
<%@ include file="/body/body.html" %>
<%@ include file="/foot/foot.html" %>
</body>
</html>显示结果是"我现在测试中文乱码的问题"这句可以正常 显示结果。但head.html,body.htal,foot.html里面的所有页面都出现????????这样的乱码问题。怎样解决?
<html>
<TITLE>复件 网页1</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<body>
我现在测试中文乱码的问题<% request.setCharacterEncoding("gb2312");
response.setCharacterEncoding("gb2312");
%>
<%@ include file="/head/head.html" %>
<%@ include file="/body/body.html" %>
<%@ include file="/foot/foot.html" %>
</body>
</html>显示结果是"我现在测试中文乱码的问题"这句可以正常 显示结果。但head.html,body.htal,foot.html里面的所有页面都出现????????这样的乱码问题。怎样解决?
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page contentType="text/html;charset=gb2312" %>的
测试通过。可以解决乱码的问题