From: Alvaro Herrera <alvherre@commandprompt.com>
To: Wang, Mary Y <mary.y.wang@boeing.com>
Cc: Michał Pawlikowski <misiekbest@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error
Date: Fri, 12 Mar 2010 17:48:28 -0300
Message-ID: <20100312204828.GH3663@alvh.no-ip.org> (raw)
In-Reply-To: <FA20D4C4FEBFD148B1C0CB09913825FC01EBEC7BC3@XCH-SW-06V.sw.nos.boeing.com>
References: <FA20D4C4FEBFD148B1C0CB09913825FC01EBE7D408@XCH-SW-06V.sw.nos.boeing.com>
<D960CB61B694CF459DCFB4B0128514C2039381DE@exadv11.host.magwien.gv.at>
<217ea9ed1003080438he2b4b47ke0fc078eaf70e346@mail.gmail.com>
<FA20D4C4FEBFD148B1C0CB09913825FC01EBEC7BC3@XCH-SW-06V.sw.nos.boeing.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: alvherre@commandprompt.com, mary.y.wang@boeing.com, misiekbest@gmail.com
Subject: Re: ERROR: invalid byte sequence for encoding "UTF8": 0x93 Error
In-Reply-To: <20100312204828.GH3663@alvh.no-ip.org>
References: <FA20D4C4FEBFD148B1C0CB09913825FC01EBE7D408@XCH-SW-06V.sw.nos.boeing.com> <D960CB61B694CF459DCFB4B0128514C2039381DE@exadv11.host.magwien.gv.at> <217ea9ed1003080438he2b4b47ke0fc078eaf70e346@mail.gmail.com> <FA20D4C4FEBFD148B1C0CB09913825FC01EBEC7BC3@XCH-SW-06V.sw.nos.boeing.com> <20100312204828.GH3663@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox