Re: Finding bad bye in "invalid byte sequence" error
От
Douglas McNaught
Тема
Re: Finding bad bye in "invalid byte sequence" error
Дата
Msg-id
5ded07e00712140905g1cff2098tb82455c26bb2a72f@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Finding bad bye in "invalid byte sequence" error robert <robertlazarski@gmail.com>
Re: Finding bad bye in "invalid byte sequence" error Adrian Klaver <aklaver@comcast.net>
Re: Finding bad bye in "invalid byte sequence" error "Douglas McNaught" <doug@mcnaught.org>
Re: Finding bad bye in "invalid byte sequence" error Tom Lane <tgl@sss.pgh.pa.us>
On 12/13/07, robert 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
В списке pgsql-general по дате отправления