this problem is like this: file1--->aa.jsp <%@ page contentType="text/html;charset=gb2312" %> file2--->bb.jsp <%@ include file="aa.jsp" %> ÕâÊÇÒ»¸ö²âÊÔ bb.jsp cannot display correctly you only write like this can be correctly file3--->cc.jsp <%@ page contentType="text/html;charset=gb2312" %> ÕâÊÇÒ»¸ö²âÊÔ
I'm not sure what version of Tomcat this was reported against, but I've tested it with 3.2.2 and the latest betas of 3.3 and 4.0 and it works correctly in all cases. In fact, the work around presented below will cause a translation time exception because the contentType attribute can't be set more than once.