tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach ...@objektpark.de>
Subject JSP Encoding changed between tomcat 5.0.27 and 5.5.x
Date Sun, 05 Sep 2004 18:42:06 GMT
Hello,

I have test a small application with Tomcat 5.5 and CVS HEAD 5.5.1-dev
and with JDT something changed from 5.0.x to 5.5 with the JSP encoding.

see example. test.jspx 

The problem exit also with "normal" *.jsp with <%@ page pageEncoding="ISO-8859-1" %>
I thing the JDT compiles with UTF-8, right ?

Bug or what is wrong?

Regards
Peter

PS: Thanx, Michael Schuerig to report me this example!



test.jspx:
---->---->---->----
<?xml version="1.0" encoding="ISO-8859-1"?>

<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:jsp="http://java.sun.com/JSP/Page"
 xmlns:c="http://java.sun.com/jsp/jstl/core"
 xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
 lang='de'

>>
>  
>

  <jsp:output doctype-root-element="html"
   doctype-public="-//W3C//DTD XHTML Strict 1.0//EN"
   doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml1-strict.dtd" />

  <jsp:directive.page contentType="text/html" />
  <jsp:directive.page session="false" />

  <head>
    <title>Test</title>
  </head>

  <body>

    ä<br/>
    ö<br/>
    ü<br/>
    Ä<br/>
    Ö<br/>
    Ü<br/>
    "&#160;"<br/>

  </body>
</html>
---->---->---->----

Tomcat 5.5 (falsch)
http://localhost:8080/myapp/test.jspx:
---->---->---->----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Strict 1.0//EN" 
"http://www.w3.org/TR/xhtml-basic/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
lang="de"><head><title>Test</title></head><body>

    Ãâ,¬<br/>
    ö<br/>
    ÃÅ'<br/>
    ÃÂ"<br/>
    ÃÂ-<br/>
    Ü<br/>
    "Ã, "<br/></body></html>
---->---->---->----

Tomcat 5.0.27 (korrekt)
http://localhost:8080/myapp/test.jspx:
---->---->---->----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Strict 1.0//EN" 
"http://www.w3.org/TR/xhtml-basic/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
lang="de"><head><title>Test</title></head><body>

    ä<br/>
    ö<br/>
    ü<br/>
    Ã"<br/>
    Ã-<br/>
    Ü<br/>
    "Â "<br/></body></html>
---->---->---->----





---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message