Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error

Поиск
Список
Период
Сортировка
Искать
От
Wang, Mary Y
Тема
Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error
Дата
Msg-id
FA20D4C4FEBFD148B1C0CB09913825FC01EBEC7BE7@XCH-SW-06V.sw.nos.boeing.com
Ответ на
Список
Дерево обсуждения
ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error "Wang, Mary Y" <mary.y.wang@boeing.com>
Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error "Albe Laurenz" <laurenz.albe@wien.gv.at>
Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error Michał Pawlikowski <misiekbest@gmail.com>
Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error "Wang, Mary Y" <mary.y.wang@boeing.com>
Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error Alvaro Herrera <alvherre@commandprompt.com>
Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error "Wang, Mary Y" <mary.y.wang@boeing.com>
Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error "Wang, Mary Y" <mary.y.wang@boeing.com>
Thanks Alvaro.  What do I do with a apostrophe  (such as I've)?

Mary 


----Original Message-----
From: Alvaro Herrera [mailto:alvherre@commandprompt.com] 
Sent: Friday, March 12, 2010 12:48 PM
To: Wang, Mary Y
Cc: Michał Pawlikowski; pgsql-general@postgresql.org
Subject: Re: [GENERAL] ERROR: invalid byte sequence for encoding "UTF8":0x93 Error

Wang, Mary Y escribió:
> Hi Michal,
> 
> Thanks for the info.  However, the text that the user entered is all in English letters.  I saw this error, when I restored my database with the pg_dump --insert option.  That row didn't get inserted to the table.  What's interesting about this problem is that when I manually entered the data to the database via psql, this record made it without any problems. It's still a mystery to me .....

Well, 0x93 is certainly not an english letter; most likely it's a win1252-encoded curved single quote.  That's not within the ASCII definition.  You can probably insert the data by declaring

SET client_encoding TO 'win1252'

at the start of the file.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления
От: Alvaro Herrera
Дата:
От: Wang, Mary Y
Дата:
FAQ