[gdal-dev] How to debug the shape open option "encoding"?

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Fri May 11 09:25:39 PDT 2018


Hi,

I need to run a certain job that requires open option "-oo encoding="ISO_8859-1" and while it runs fine on Windows with the OSGeo4W installation with version GDAL 2.2.4, released 2018/03/19 it leads to loads of warnings "Warning 1: Value of field 'name_field' is not a valid UTF-8 string." with the gisinternals installation GDAL 2.3.0dev, released 2017/99/99.

The shapefiles which I have are really using ISO_8859-1 and gisinternals version handles them OK without using the open option, except one. The problematic one does not have the LDID "87 / 0x57" flag in the .dbf part and therefore it is interpreted as UTF-8 if I do not use the open option. If I use the open option the gisinternals version prints the warnings about all the
Shape: Treating as encoding 'ISO_8859-1'.
Shape: Cannot recode from 'ISO_8859-1'. Disabling recoding

Is there anything else that an end user could do for finding out why the gisinternals build fails with recoding?
BTW is it documented somewhere which are the correct values for different encodings? For example in my case I had to use exactly "-oo encoding="ISO_8859-1".

-Jukka Rahkonen-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180511/db7173fa/attachment.html>


More information about the gdal-dev mailing list