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

matteo matteo.ghetta at gmail.com
Mon Nov 29 08:51:47 PST 2021


Hi all,

I'm trying to run a command with the GdalUtils.runGdal utility of QGIS 
but I get some troubles because of the encoding.

Basically I need to set the encoding to PGCLIENTENCODING=LATIN1. If I 
call it in a console, no problem at all (of course :) ). Wondering if I 
can set the encoding also within QGIS (that is basically via the ogr2ogr 
command).

I know that this is a more QGIS question, but QGIS is calling ogr2ogr, 
so I think if there is a ogr2ogr way to do that then also within QGIS 
should be possible.

Cheers and thanks for any ideas!

Matteo


More information about the gdal-dev mailing list