[gdal-dev] how to set filegdb encoding

Even Rouault even.rouault at spatialys.com
Wed Jan 7 00:47:18 PST 2015


Le mercredi 07 janvier 2015 09:41:35, wxx a écrit :
> the dirver of shp file  in ogr can support chinese character by setting
> CPLSetConfigOption("SHAPE_ENCODING","");
> how to set encoding about filegdb dirver to support chinese character.
> now all the chinese character in the attribute field is messy code.

The FileGDB driver (as most drivers) expects attribute values to be passed in 
UTF-8 encoding (and this is the encoding used in the FileGDB binary format 
itself), so you'll likely have to convert on your side from your chinese 
encoding into UTF-8.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list