Re: MSSQL to PostgreSQL : Encoding problem - Mailing list pgsql-general

From Arnaud Lesauvage
Subject Re: MSSQL to PostgreSQL : Encoding problem
Date
Msg-id 456459F2.4000102@freesurf.fr
Whole thread Raw
In response to Re: MSSQL to PostgreSQL : Encoding problem  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: MSSQL to PostgreSQL : Encoding problem  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: MSSQL to PostgreSQL : Encoding problem  (Tony Caduto <tony_caduto@amsoftwaredesign.com>)
List pgsql-general
Alvaro Herrera a écrit :
> Arnaud Lesauvage wrote:
>> Tomi NA a écrit :
>> >>I think I'll go this way... No other choice, actually !
>> >>The MSSQL database is in SQL_Latin1_General_CP1_Cl_AS.
>> >>I don't really understand what this is. It supports the euro
>> >>symbol, so it is probably not pure LATIN1, right ?
>> >
>> >I suppose you'd have to look at the latin1 codepage character table
>> >somewhere...I'm a UTF-8 guy so I'm not well suited to respond to the
>> >question. :)
>>
>> Yep, http://en.wikipedia.org/wiki/Latin-1 tells me that
>> LATIN1 is missing the euro sign...
>> Grrrrr I hate this !!!
>
> So use Latin9 ...

Of course, but it doesn't work !!!
Whatever client encoding I choose in postgresql before
COPYing, I get the 'invalid byte sequence error'.

The farther I can get is exporting to UNICODE and importing
as UTF8. Then COPY only breaks on the euro symbol (otherwise
it breaks very early, I think on the first "non-ascii"
character).

--
Arnaud

pgsql-general by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: MSSQL to PostgreSQL : Encoding problem
Next
From: Arnaud Lesauvage
Date:
Subject: Re: MSSQL to PostgreSQL : Encoding problem