[gdal-dev] Esri Shapefile: problem with UTF-8 on Windows

Even Rouault even.rouault at spatialys.com
Sat Oct 11 12:31:26 PDT 2014


On Saturday 11 October 2014 23:17:18 Dmitriy Baryshnikov wrote:
> Hi,
> 
> It seems to me what ENCODING=UTF8 affects only on field values not
> names.

In recent versions of GDAL, this should also recode field names. But I think 
the issue here is just a typo. It should be UTF-8, not UTF8. UTF8 might work 
on Linux since iconv accepts both UTF8 and UTF-8. But on Windows, only UTF-8 
will work.

> It is good practice to not use non English field names.
> 
> Best regards,
>      Dmitry
> 
> 11.10.2014 20:30, Martin Landa пишет:
> > Hi,
> > 
> > I have problem with converting GML file (UTF-8) to Esri Shapefile on
> > Windows (Czech version), it fails with error:
> > 
> > Failed to create field name 'NutsLau' : cannot convert to UTF8
> > 
> > I am using configuration option LCO 'ENCODING=UTF8'. Exporting the
> > same file simply works on my Debian GNU/Linux.
> > 
> > Any idea what could be a problem? Thanks in advance, Martin
> 
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

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


More information about the gdal-dev mailing list