RV: encoding problem

From: "Sergio Medina" <sergioluismedina(at)gmail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>
Subject: RV: encoding problem
Date: 2010-11-30 21:22:48
Message-ID: 003701cb90d4$becd6770$3c683650$@com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


But when I insert rows with those characters, there´s no problem. Only when
Copy files, Why is this?

Thanks

-----Mensaje original-----
De: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Enviado el: martes, 30 de noviembre de 2010 02:16 p.m.
Para: Sergio Medina
CC: pgsql-novice(at)postgresql(dot)org
Asunto: Re: [NOVICE] encoding problem

"Sergio Medina" <sergioluismedina(at)gmail(dot)com> writes:
> I have a server with utf8 encoding, but trying to copy a csv file
containing
> characters like ó,í,á,é,ñ in rows throws the next error.

> ERROR: secuencia de bytes no válida para codificación UTF8 0xf327

Well, it's right: that's not UTF8. It looks like it might be LATIN1.
Figure out what encoding your data is really in, and then set
client_encoding to that before trying to load the CSV file.

regards, tom lane

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2010-11-30 21:27:11 Re: RV: encoding problem
Previous Message Tom Lane 2010-11-30 21:15:36 Re: encoding problem