From: | "Douglas McNaught" <doug(at)mcnaught(dot)org> |
---|---|
To: | robert <robertlazarski(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Finding bad bye in "invalid byte sequence" error |
Date: | 2007-12-14 17:05:20 |
Message-ID: | 5ded07e00712140905g1cff2098tb82455c26bb2a72f@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 12/13/07, robert <robertlazarski(at)gmail(dot)com> wrote:
> Hi all,
>
> I'm trying to hack my inserts script from mssql to work with postgres
> 8.1.9 - I can upgrade if need be. 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".
The cleanest way to fix this is to figure out what encoding the data
in your SQL script is (since I am assuming parts of it were dumped
directly out of MSSQL) and set client_encoding to that. Your data is
almost certainly not straight 7-bit ASCII.
-Doug
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-12-14 17:07:02 | Re: Finding bad bye in "invalid byte sequence" error |
Previous Message | Alvaro Herrera | 2007-12-14 16:55:04 | Re: Hijack! |