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/06/23 19:16:43 UTC
DO NOT REPLY [Bug 29763] New: -
The encoding of jsp document
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=29763>.
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=29763
The encoding of jsp document
Summary: The encoding of jsp document
Product: Tomcat 5
Version: 5.0.25
Platform: All
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: petr.pisl@sun.com
Hi,
there are three places where the encoding for a jsp document can be set. In the
xml prolog according to XML 1.0 specification, deployment descriptor in the
<jsp-property-group> and as value of pageEncoding attribute of
<jsp:directive.page />. When there are defined at least two of them, then they
have to be the same.
If there are a jsp document without xml prolog - for example:
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html"/> <!-- Shift_JIS -->
<jsp:directive.page pageEncoding="EUC-JP"/>
.....
</jsp:root>
the tomcat says that the encoding is UTF-8, not EUC-JP. Even when there is set
the encoding EUC-JP in the deployment descriptor. If tomcat thinks that the
encoding is UTF-8 it should report an error according to the JSP specification,
because there is different encoding defined in value of pageEncoding.
Regards Petr
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org