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

Поиск
Список
Период
Сортировка
От Zach Seaman
Тема Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1
Дата
Msg-id CACVtUUuzKpqHmmOSCy7L8ie7APo_WnsKQAv23Nae-Zx+Oj9DwA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [NOVICE] Problems with ñ and tildes / CSV import problems in PostgreSQL 9.1  (Jaime Casanova <jaime@2ndquadrant.com>)
Список pgsql-novice
I'm running PostgreSQL 9.1


On Thu, Feb 7, 2013 at 9:03 AM, Jaime Casanova <jaime@2ndquadrant.com> wrote:
On Wed, Feb 6, 2013 at 7:56 PM, Zach Seaman <znseaman@gmail.com> wrote:
> 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.
>

well, that mail is from 2005... what version of postgres are you running at?

> ERROR: invalid byte sequence for encoding "UTF8": 0xe17371
>

run:

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



--
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 по дате отправления:

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