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 33099] New: - static include of non-jsp content uses always uses ISO-8859-1 encoding
Date Fri, 14 Jan 2005 13:52:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33099>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33099

           Summary: static include of non-jsp content uses always uses ISO-
                    8859-1 encoding
           Product: Tomcat 5
           Version: 5.0.18
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: major
          Priority: P1
         Component: Jasper
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: tomasz.bech@bull.com.pl


Example:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
<jsp:directive.page contentType="text/html;charset=UTF-8" language="java"
pageEncoding="UTF-8"/>
<jsp:include page="/expltest.html"/>
</jsp:root>

expltest.html is also UTF-8. The result is corrupted ISO-8859-1 encoding.
I've checked JSP specification. In the chapter 'Page Encoding Detection' the
isssue of including non-jsp content is not mentioned.

IMHO current implementation is not acceptable - no way to properly include utf-8
content (at least not found any working solution - found one about changing html
to jsp, but it is ugly hack,not solution). As JSP specification does not specify
it, do propose something working.
The easiest idea is: inheritance of encoding from parent jsp and/or additional
parameter 'encoding' to jsp:include (more difficult would be search for
meta/charset if it is html file) or one setting for contrainer in web.xml - I
know that whatever is done is not complaint to spec, but spec is not complete.
Now I'm searching for third party include taglib which is nicer :)
Thanks

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message