Zach Seaman <znse...@gmail.com> writes:No, the client encoding needs to be LATIN1 to read this file.
> I changed from LATIN1, set my database to UTF8, and my client_encoding is
> UTF8.
> ERROR: invalid byte sequence for encoding "UTF8": 0xe17320
> ás[space]
regards, tom lane
I changed from LATIN1, set my database to UTF8, and my client_encoding is UTF8.ERROR: invalid byte sequence for encoding "UTF8": 0xe17320
ás[space]
Is it a trial and error type problem now?On Thu, Feb 7, 2013 at 10:15 AM, Tom Lane <t...@sss.pgh.pa.us> wrote:
Ken Benson <k...@infowerks.com> writes:
> So - the problem may be that /*truly**0x e1 73 71*/ is not a valid UTF-8
> character in the current iteration of PostgreSQL - or at all.Of course it isn't, which is why Postgres is complaining. Presumably
what that data really is is three characters (looks like "ásq") in
LATIN1. But Postgres is trying to interpret it in UTF8. As mentioned
upthread, the solution is to adjust the client_encoding setting before
running the COPY command.
regards, tom lane
--
Sent via pgsql-novice mailing list (pgsql-...@postgresql.org)
To make changes to your subscription:http://www.postgresql.org/mailpref/pgsql-novice
--Zach Seaman
GIS Expert, IRRI-México
Master of Regional & Community Planning
m 55.2247.1740 (México)
m 01.913.4860.832 (U.S.)
On Wed, Feb 6, 2013 at 7:56 PM, Zach Seaman <znse...@gmail.com> wrote:
> I'm fairly new to PostgreSQL 9.1 but I need it, so here I am.well, that mail is from 2005... what version of postgres are you running at?
>
> This a similar question to this one, so I have encoded a database with
> LATIN-1 as suggested but can't copy a CSV file into a table within the
> database.
>
run:
> ERROR: invalid byte sequence for encoding "UTF8": 0xe17371
>
SET client_encoding TO UTF8;
before running the copy command, or maybe set to LATIN1
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
Phone: +593 4 5107566 Cell: +593 987171157
I'm fairly new to PostgreSQL 9.1 but I need it, so here I am.
This a similar question to this one, so I have encoded a database with LATIN-1 as suggested but can't copy a CSV file into a table within the database.
ERROR: invalid byte sequence for encoding "UTF8": 0xe17371
Googling doesn't get me anywhere and I am working with Spanish characters.