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 2003/08/13 02:09:33 UTC
DO NOT REPLY [Bug 22366] New: -
UTF-16 encoding not properly processed if used in JSP document
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: tomcat-dev@jakarta.apache.org
ReportedBy: pierre.delisle@sun.com
CC: Ryan.Lubke@Sun.COM
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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org