You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/03/08 16:21:32 UTC
DO NOT REPLY [Bug 27517] New: -
The pageEncoding attribute is not used, when charset value is set.
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