Re: COPY FROM encoding error - Mailing list pgsql-general

From Jim Nasby
Subject Re: COPY FROM encoding error
Date
Msg-id FD6D7CC4-0D22-4B16-8B55-1553B87FE0FB@enterprisedb.com
Whole thread Raw
In response to COPY FROM encoding error  (Arnaud Lesauvage <thewild@freesurf.fr>)
List pgsql-general
On Nov 21, 2006, at 4:20 AM, Arnaud Lesauvage wrote:
> ERROR: invalid byte sequence for encoding "UTF8": 0xff
> État SQL :22021
> Astuce : This error can also happen if the byte sequence does not
> match the encoding expected by the server, which is controlled by
> "client_encoding".
> Contexte : COPY mytable, line 592680
>
> I think that the encoding is OK because more than 500.000 lines are
> copied without problem, so there might be just one problematic
> character here.
>
> How can I solve this problem ?

You need to fix the bad character. You can do this manually, or
search the archives for "UTF8 invalid iconv" for another solution.
--
Jim Nasby                               jim.nasby@enterprisedb.com
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)




pgsql-general by date:

Previous
From: "Jim Nasby"
Date:
Subject: Re: Allowing SYSDATE to Work
Next
From: "Jim Nasby"
Date:
Subject: Re: Druid for postgreSQL - can I export my ERD to MS Access?