UTF-8 encoding in SLD editor & validator
----------------------------------------
Key: GEOS-4263
URL: http://jira.codehaus.org/browse/GEOS-4263
Project: GeoServer
Issue Type: Bug
Components: UI
Affects Versions: 2.0.2
Environment: Tested in: Win7 32b, SUN JRE 1.6.0.x, Jetty, Geoserver 2.0.x, Firefox 3.6.x
Reporter: Oscar Fonts
Assignee: Andrea Aime
Priority: Minor
Attachments: PolygonWithAccents.sld, PolygonWithAccentsInSLDEditor.gif
Writing special chars directly in SLD editor textarea throws a "java.io.UTFDataFormatException: Invalid byte 2 of 4-byte UTF-8 sequence." when submitting.
When loading an UTF-8 encoded SLD into editor, it appears as double-encoded (v.gr. "ò" rendrered as "ò", etc.). Not eye-pleasant, but that is what the validator wants.
In conclusion: SLD with special chars cannot be created/edited online because of double encoding in source.
---
Attached: SLD with accents encoded in UTF-8, & screen capture of this same file in SLD editor.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira