[gdal-dev] PGCLIENTENCODING in ogr2ogr (and QGIS)

matteo matteo.ghetta at gmail.com
Tue Nov 30 03:05:28 PST 2021


Hi Rahkonen and Even,

thanks for the answers. If I add -oo PRELUDE_STATEMENTS="SET 
client_encoding TO LATIN1" the I get this error:

Warning 6: driver ESRI Shapefile does not support open option 
PRELUDE_STATEMENTS

and I think it that makes sense because I want to put in a UTF8 DB some 
LATIN1 shapefiles.

BTW: the shapefiles have been created with ogr2ogr from within QGIS (on 
a Linux computer), opened and edited on QGIS on Windows machines.

Other ideas are more than welcome!

Cheers!

Matteo


More information about the gdal-dev mailing list