[Geoserver-devel] [jira] Created: (GEOS-4192) Can not parse SLD containing Japanese Property Names

Can not parse SLD containing Japanese Property Names
----------------------------------------------------

                 Key: GEOS-4192
                 URL: http://jira.codehaus.org/browse/GEOS-4192
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 2.1-beta1, 2.0.2
            Reporter: Mario Basa
            Assignee: Andrea Aime
            Priority: Minor

SLDs are not parsed when it contains Japanese characters (double byte strings in UTF-8 encoding), because String.getBytes() corrupts the SLD string if called without specifying the correct encoding system.

To Fix:

added "UTF-8" in line 235 of org.geoserver.wms.map.GetMapKvpRequestReader.java:

StyledLayerDescriptor sld = parseSld(new
  ByteArrayInputStream(getMap.getSldBody()
                             .getBytes("UTF-8")));

--
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