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 9996] New: - <@%include> breaks when the included page contains non-ascii encoding
Date Wed, 19 Jun 2002 12:24:11 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=9996>.
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=9996

<@%include> breaks when the included page contains non-ascii encoding 

           Summary: <@%include> breaks when the included page contains non-
                    ascii encoding
           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.  I have logged bug#9993 against <jsp:include>. This one is for 
<@%include>.  Consider the following examples:


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

tail.jsp ==>
<%! static int ii = 0;%>
<p>
<% out.println("tail begins 2\n"); %>
ʐuЊ 
<% 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 (pageEncoding="Big5") parameter from head.jsp, 
everything will work fine.  Likewise, if I wrote 
<%@ page contentType="text/html;charset=Big5"%> in head.jsp instead, 
everything works fine.  Coupled with bug9993, this bug pretty much prevents us 
from using tomcat to build a professional chinese website...

My installation is running on Chinese Big5 WinXP.

Thanks.

--
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