Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1083 | major | always | 05-02-06 05:39 | 06-27-06 08:23 | |
|
|||||
Reporter: | jrg745 | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.18 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|||||
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. |
||||
Steps To Reproduce: | |||||
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> |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|