Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error
Date
Msg-id 20100312204828.GH3663@alvh.no-ip.org
Whole thread Raw
In response to Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error  ("Wang, Mary Y" <mary.y.wang@boeing.com>)
Responses Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error  ("Wang, Mary Y" <mary.y.wang@boeing.com>)
List pgsql-general
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
restoredmy database with the pg_dump --insert option.  That row didn't get inserted to the table.  What's interesting
aboutthis 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 by date:

Previous
From: "Wang, Mary Y"
Date:
Subject: Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error
Next
From: "Wang, Mary Y"
Date:
Subject: Re: ERROR: invalid byte sequence for encoding "UTF8":0x93 Error