invalid byte sequence for encoding "UTF8" - Mailing list pgsql-general

From Gary Benade
Subject invalid byte sequence for encoding "UTF8"
Date
Msg-id TSGSERVERWzUMIa2nXO0000015d@softwareguys.co.za
Whole thread Raw
Responses Re: invalid byte sequence for encoding "UTF8"  (Martijn van Oosterhout <kleptog@svana.org>)
Re: invalid byte sequence for encoding "UTF8"  ("Chad Wagner" <chad.wagner@gmail.com>)
List pgsql-general
I used shp2pgsql.exe to create an import sql for my gis database.
The resultant sql has data like this in it.INSERT INTO "gis"."sa_area" ("label","type","level",the_geom) VALUES ('MÔRELIG','0x2','2','0106000000010000000');
The Ô is ascii char 212.
This wont import, PSQL returns
ERROR: invalid byte sequence for encoding "UTF8": 0xd452
HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client-encoding"

TIA
Gary
 

pgsql-general by date:

Previous
From: "Jasbinder Singh Bali"
Date:
Subject: Dynamic loading of Perl Code in Postgres functions
Next
From: "Adam Rich"
Date:
Subject: Re: Dynamic loading of Perl Code in Postgres functions