[Geoserver-devel] [jira] Created: (GEOS-4263) UTF-8 encoding in SLD editor & validator

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

     [ http://jira.codehaus.org/browse/GEOS-4263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oscar Fonts reopened GEOS-4263:
-------------------------------

Reopened for review.

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
            Fix For: 2.1-RC1

        Attachments: geoserver-sld-utf8.patch, GS-21b3.png, PolygonWithAccents-UTF8.sld, web-wms-2.1-SNAPSHOT.jar

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