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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

<[EMAIL PROTECTED] contentType="text/html;charset=ISO-8859-2"%>
<[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to