Include charset as an optional parameter in REST URL's
------------------------------------------------------
Key: GEOS-4418
URL: http://jira.codehaus.org/browse/GEOS-4418
Project: GeoServer
Issue Type: Improvement
Components: REST
Affects Versions: 2.1.x
Reporter: Matt Bertrand
Assignee: Andrea Aime
Priority: Minor
Attachments: chinese_poly.zip, restconfig_charset_param.patch
When importing shapefiles to PostGIS via REST URL's, attributes with UTF-8 encoded text (such as Chinese characters) are not imported correctly into PostGIS. I managed to get around this by modifying org.geoserver.catalog.rest.DataStoreFileResource to accept an optional "charset" query parameter.
Example: http://localhost:8080/gs21/rest/workspaces/geonode/datastores/wmpostgis/file.shp?charset=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