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


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to