DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22366

UTF-16 encoding not properly processed if used in JSP document

           Summary: UTF-16 encoding not properly processed if used in JSP
                    document
           Product: Tomcat 5
           Version: 5.0.3
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Jasper2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


Given the following JSP page (utf16.jsp)

  <%@ page pageEncoding="UTF-16" contentType="text/html;charset=UTF-8" %>
  Hello World in UTF-16!
  <%= "ALLO!" %>

If this page is encoded in UTF-16,
and the proper configuration settings are set in the 
deployment descriptor so the page is read with the 
proper encoding (must use configuration settings since UTF-16
byte values 0 to 127 do not have the same meaning as in ASCII)

  <jsp-property-group>
    <url-pattern>utf16*</url-pattern>
    <page-encoding>UTF-16</page-encoding>
  </jsp-property-group>

the JSP page is not processed properly.
The full content of the page is simply processed
as template text.

However if the page is in XML view, it will be processed
properly:

<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page";
  version="1.2">
<jsp:directive.page pageEncoding="UTF-16" contentType="text/html;charset=UTF-8" />
Hello World in UTF-16!
<jsp:expression>
"ALLO!"
</jsp:expression>
</jsp:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to