Re: COPY and Unicode... - Mailing list pgsql-general

From Douglas McNaught
Subject Re: COPY and Unicode...
Date
Msg-id m2aci640mf.fsf@Douglas-McNaughts-Powerbook.local
Whole thread Raw
In response to COPY and Unicode...  ("Cristian Prieto" <cristian@clickdiario.com>)
Responses Re: COPY and Unicode...
List pgsql-general
"Cristian Prieto" <cristian@clickdiario.com> writes:

> Hello, I need to import some amount of data using the COPY command, the main
> trouble I found is that the Database is in UNICODE format and the data in
> ASCII Latin-1 codepage, when I try to import it, COPY respond with:
>
> ERROR:  invalid byte sequence for encoding "UNICODE": 0xe9
> CONTEXT:  COPY geoip_location, line 307, column city: "Yaound"
>
> I've been looking into the documentation and I could not found any reference
> in copy from a distinct codepage than the used by the database, any help?

Are you setting the client_encoding variable before doing the COPY?

-Doug

pgsql-general by date:

Previous
From: CSN
Date:
Subject: Re: index row size exceeds btree maximum
Next
From: Tom Lane
Date:
Subject: Re: COPY and Unicode...