[gdal-dev] invalid byte sequence for encoding "UTF8": 0xc309

Even Rouault even.rouault at spatialys.com
Mon Feb 23 02:29:04 PST 2015


Le lundi 23 février 2015 11:12:45, Martin Landa a écrit :
> Hi,
> 
> I am having problem to convert VFR file [1] to PostGIS. The command
> 
> ogr2ogr -f PostgreSQL PG:dbname=uvoh
> /vsicurl/http://vdp.cuzk.cz/vymenny_format/specialni/20150203_ST_UVOH.xml.g
> z -overwrite
> 
> fails with:
> 
> ERROR 1: COPY statement failed.
> ERROR:  invalid byte sequence for encoding "UTF8": 0xc309
> CONTEXT:  COPY volebniokrsek, line 7416
> 

> Any idea what could be wrong? Thanks in advance! Martin

Martin,

Fixed by http://trac.osgeo.org/gdal/changeset/28539

I'm not sure if people relied on the implicit truncation done by the COPY code 
path, but for now it is better do disable it as it was wrong for UTF-8 
characters.

Even


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


More information about the gdal-dev mailing list