Anonymous | Login | Signup for a new account | 12-17-2024 08:23 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001083 | [Resin] | major | always | 05-02-06 05:39 | 06-27-06 08:23 | ||||
Reporter | jrg745 | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.18 | ||||||
Summary | 0001083: Encoding problem in resin jstl implementation | ||||||||
Description |
The jspx page below reads two files containing special characters like umlauts and the Euro character, parses them and displays the result. The first file is encoded using UTF-8, the second using ISO-8859-1. The result page uses ISO-8859-1. The import is done using c:import, the document is parsed with x:parse and the as a result the variable that holds the original data is output using c:out and the parsed content using x:out. If the original file is encoded as UTF-8 the result is nearly correct, only the Euro character is not displayed correctly. If the original file is encoded using ISO-8859-1 the result from c:out is correct, but the output from x:out is not readable. Surprisingly, in this case the Euro character is the only character that is displayed correctly. We are using resin 3.0.18 under Windows XP. |
||||||||
Additional Information |
The jspx code: <?xml version="1.0" encoding="ISO-8859-1"?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" [^] xmlns:c="http://java.sun.com/jsp/jstl/core" [^] xmlns:x="http://java.sun.com/jsp/jstl/xml" [^] version="2.0"> <jsp:directive.page contentType="text/html; charset=ISO-8859-1"/> <html> <body> <h1>UTF Test</h1> <c:import charEncoding="UTF-8" url="http://localhost:8080/test/testUTF.xml" [^] var="docUTF"/> <x:parse xml="${docUTF}" var="parsedDocUTF"/>
<h1>ISO Test</h1> <c:import charEncoding="ISO-8859-1" url="http://localhost:8080/test/testISO.xml" [^] var="docISO"/> <x:parse xml="${docISO}" var="parsedDocISO"/>
</body> </html> </jsp:root> The test file (the ISO-8859-1 version, the test uses a second file that is encoded using UTF-8): <?xml version="1.0" encoding="ISO-8859-1"?> <test> <testtext>äöüÄÖÜ€</testtext> </test> |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
66 total queries executed. 27 unique queries executed. |