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

2015-02-23 Thread Martin Landa
Hi Even, 2015-02-23 12:58 GMT+01:00 Even Rouault : > The direct backport wasn't possible since the code had been refactored and > people could likely depend on truncation for non-UTF8 content. > > So I have finally fixed the truncation to work. There was embryonic code, but > wrong/subobtimal, in

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

2015-02-23 Thread Even Rouault
Le lundi 23 février 2015 11:36:33, Martin Landa a écrit : > Hi Even, > > 2015-02-23 11:29 GMT+01:00 Even Rouault : > > 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 d

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

2015-02-23 Thread Martin Landa
Hi Even, 2015-02-23 11:29 GMT+01:00 Even Rouault : > 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. thanks, I can confirm

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

2015-02-23 Thread Even Rouault
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

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

2015-02-23 Thread Martin Landa
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.gz -overwrite fails with: ERROR 1: COPY statement failed. ERROR: invalid byte sequence for encoding "UTF8": 0xc