Re: MSSQL to PostgreSQL : Encoding problem

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Arnaud Lesauvage <thewild(at)freesurf(dot)fr>
Cc: Tomi NA <hefest(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: MSSQL to PostgreSQL : Encoding problem
Date: 2006-11-22 16:23:13
Message-ID: 20061122162313.GA6804@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Arnaud Lesauvage wrote:

> mydb=# SET client_encoding TO LATIN9;
> SET
> mydb=# COPY statistiques.detailrecherche (log_gid,
> champrecherche, valeurrecherche) FROM
> 'E:\\Production\\Temp\\detailrecherche_ansi.csv' CSV;
> ERROR: invalid byte sequence for encoding "LATIN9": 0x00
> HINT: This error can also happen if the byte sequence does
> not match the encoding expected by the server, which is
> controlled by "client_encoding".

Huh, why do you have a "0x00" byte in there? That's certainly not
Latin9 (nor UTF8 as far as I know).

Is the file actually Latin-something or did you convert it to something
else at some point?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-11-22 16:24:33 Re: Functional Index
Previous Message Stephan Szabo 2006-11-22 16:18:57 Re: Functional Index