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 27517] New: - The pageEncoding attribute is not used, when charset value is set.
Date Mon, 08 Mar 2004 15:21:32 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=27517>.
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=27517

The pageEncoding attribute is not used, when charset value is set.

           Summary: The pageEncoding attribute is not used, when charset
                    value is set.
           Product: Tomcat 5
           Version: 5.0.19
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: petr.pisl@sun.com


When you have jsp page saved in encoding UTF-8:

<%@page contentType="text/html;charset=ISO-8859-2"%>
<%@page pageEncoding="UTF-8"%>
<html>
<head><title>JSP Page</title></head>
<body>
ěššěřčžřžřýýáýžýí
<br><hr>
</body>
</html>

then the jsp file is read with ISO-8859-2 encoding. There are wrong Czech
characters in the generated servlet.  But according to the JSP 2.0 specification
the file should be read with encoding from pageEncodintg (UTF-8 in my case) and
the responds has to be in charset value encoding ( ISO-8859-2).

We used the jasper-compiler.jar as jsp parser in NetBeans and we use the result
of the parsing for saving and loading jsp files into the editor, where the wrong
value of encoding causes problems.

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