I'm trying to load Census county level TIGER/line spatial layers into PostGIS using ogr2ogr in Windows.
Is there anyway to configure the encoding to LATIN1?
example:
ogr2ogr -f "PostgreSQL" PG:"user=postgres dbname=universe" . -lco PRECISION=NO -lco SCHEMA=census -nlt PROMOTE_TO_MULTI -lco ENCODING=LATIN1
error received:
ERROR 1: ERROR: invalid byte sequence for encoding "UTF8": 0xf3 0x76 0x61 0x6e
ERROR 1: INSERT command for new feature failed.
ERROR: invalid byte sequence for encoding "UTF8": 0xf3 0x76 0x61 0x6e
--debug oninto your command may print more info about the error. – user30184 Nov 20 '16 at 18:17