[GIS] How to control encodings in pgsql2shp

encodingpgsql2shp

I have a database and exporting with pgsql2shp various shapefiles. But when I open the dbf the characters are displayed wrong. Example: BroeksterwÔld and this should be Broeksterwäld.

This probably has to do with encoding. The database is UTF-8. I tried to export the shapefiles as LATIN1, but I can't figure out how to do so.


UPDATE

I solved this problem by adding 'set pgclientencoding=latin1' (without quotes) to the batch script.

Best Answer

I solved this problem by adding 'set pgclientencoding=latin1' (without quotes) to the batch script.