tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9993] New: - <jsp:include> does not handle non-ascii encoding correctly
Date Wed, 19 Jun 2002 12:13:19 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9993>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9993

<jsp:include> does not handle non-ascii encoding correctly

           Summary: <jsp:include> does not handle non-ascii encoding
                    correctly
           Product: Tomcat 4
           Version: 4.0.3 Final
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: anonpermutation@hotmail.com


both <jsp:include> and <@%include> break when the included page contains non-
ascii encoding.  Consider the following examples:

head.jsp ==>
<%@ page contentType="text/html;charset=Big5"%>
<html>
<body>
<p>helloworld</p>
<jsp:include page="tail.jsp"/>
</body>
</html>

tail.jsp ==>
<%! static int ii = 0;%>
<p>
<% out.println("tail begins 2\n"); %>
聯合通訊社漢城 
<% out.println("tail ends\n"); ii++;%>
</p>
<p> <%=ii%> </p>

The resultant page produced by accessing head.jsp shows broken chinese 
characters that were in tail.jsp

However, if I remove the <%@ page %> directive from head.jsp, everything will 
work fine.  But I need to manually set the browser to view the page using big5 
encoding.  This bug pretty much prevents us from using tomcat to build a 
professional chinese website...

My installation is running on Chinese Big5 WinXP.

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message