Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1

Поиск
Список
Период
Сортировка
От Zach Seaman
Тема Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1
Дата
Msg-id CACVtUUsN_7ROKOw8SB+0pd+6pvmqvaz=Z6bOdP4xSVoWVJJrLA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1  (Zach Seaman <znseaman@gmail.com>)
Re: Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
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 <tgl@sss.pgh.pa.us> wrote:
Ken Benson <ken@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-novice@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.)

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1
Следующее
От: Zach Seaman
Дата:
Сообщение: Re: [NOVICE] Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1