[gdal-dev] What's up with the 8859 encoding?

Roger André randre at gmail.com
Fri Nov 7 15:03:22 PST 2014


Even,

Thank you for the quick reply.   And it appears that using a .CPG file does
not make a difference in this.  Is that correct?

Roger

On Fri, Nov 7, 2014 at 3:00 PM, Even Rouault <even.rouault at spatialys.com>
wrote:

> Le vendredi 07 novembre 2014 23:53:09, Roger André a écrit :
> > Hello List,
> >
> > I am very curious why after installing GDAL 1.11, I now need to use the
> > -lco ENCODING=UTF-8 option when using ogr2ogr on any of my already UTF-8
> > encoded shapefiles?  Failure to do so results in this error,
> >
> > Warning 1: One or several characters couldn't be converted correctly from
> > UTF-8 to ISO-8859-1.
>
> Roger,
>
> The default encoding of shapefiles is ISO-8859-1. So if you don't specify
> -lco
> ENCODING=UTF-8, the shapefile driver will attempt to recode from UTF-8 to
> ISO-8859-1. This behaviour has been introduced in GDAL 1.9. Previously no
> transcoding was done, and there could be mismatch between the actual
> encoding
> of the content and the declared encoding of the DBF.
>
> Even
>
> --
> Spatialys - Geospatial professional services
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141107/8610a838/attachment.html>


More information about the gdal-dev mailing list