[osgeo4w-dev] [osgeo4w] #294: Recoding non-Latin characters with GDAL is not supported now.

OSGeo4W trac_osgeo4w at osgeo.org
Mon Jun 25 04:16:31 PDT 2012


#294: Recoding non-Latin characters with GDAL is not supported now.
---------------------+------------------------------------------------------
Reporter:  akaginch  |       Owner:  osgeo4w-dev@…              
    Type:  defect    |      Status:  new                        
Priority:  major     |   Component:  Package                    
 Version:            |    Keywords:  character recoding         
---------------------+------------------------------------------------------
 The encoding of Shapefile has been supported in GDAL since 1.9, but it is
 not enabled because iconv library is not linked yet. Therefore, non-Latin
 language users sometimes have troubles.

 For example, when I convert a dataset of Shapefile that dbf file has "19"
 value (it means "CP932") in LDID field to KML format with ogr2ogr, the
 following message is shown.

 Warning1: Recode from CP932 to UTF-8 not supported, treated as ISO8859-1
 to UTF-8

 The Japanese characters of generated KML file is incorrect because of
 wrong recoding that this message says. I think this also results character
 corruption in QGIS as below.

 [http://hub.qgis.org/issues/5255 Quantum GIS Desktop - Bug #5255: Wrong
 codepage of shapefile - QGIS Issue Tracking]

 Would you please configure the packages including GDAL with iconv library
 and make the benefit by version-up come off?

 Best regards.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/294>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the osgeo4w-dev mailing list