Re: Finding bad bye in "invalid byte sequence" error - Mailing list pgsql-general

From Tom Lane
Subject Re: Finding bad bye in "invalid byte sequence" error
Date
Msg-id 8910.1197652022@sss.pgh.pa.us
Whole thread Raw
In response to Finding bad bye in "invalid byte sequence" error  (robert <robertlazarski@gmail.com>)
List pgsql-general
robert <robertlazarski@gmail.com> writes:
> I'm getting this error:

> psql -h localhost atdev < fuk2.sql
> ERROR:  invalid byte sequence for encoding "UTF8": 0xe1204f
> 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".

Well, that isn't UTF8, and it isn't plain ASCII either.  I'm betting
it's a single-byte encoding, probably one of the ISO-8859 series.
Have you looked at the data to see what *you* think the character is?
(Feed the script to psql with -f, not <, to get a line number for
the error.)

            regards, tom lane

pgsql-general by date:

Previous
From: "Douglas McNaught"
Date:
Subject: Re: Finding bad bye in "invalid byte sequence" error
Next
From: Richard Huxton
Date:
Subject: Re: Hijack!