Re: COPY FROM encoding error

From: "Jim Nasby" <jim(dot)nasby(at)enterprisedb(dot)com>
To: "Arnaud Lesauvage" <thewild(at)freesurf(dot)fr>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: COPY FROM encoding error
Date: 2006-11-24 19:47:25
Message-ID: FD6D7CC4-0D22-4B16-8B55-1553B87FE0FB@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)nasby(at)enterprisedb(dot)com
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim Nasby 2006-11-24 19:57:56 Re: Druid for postgreSQL - can I export my ERD to MS Access?
Previous Message Jim Nasby 2006-11-24 19:32:11 Re: Allowing SYSDATE to Work