Posgresql to MSsql encoding problem - Mailing list pgsql-general

From Pedro Doria Meunier
Subject Posgresql to MSsql encoding problem
Date
Msg-id 4ACF12F3.7080808@netmadeira.com
Whole thread Raw
Responses Re: Posgresql to MSsql encoding problem
Re: Posgresql to MSsql encoding problem
List pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

I have this PHP script that simply dumps (inserts) data from a
Postgresql server to a customer's M$SQL server.

The database in the PGSQL server is UTF-8 encoded where the M$SQL
database uses LATIN1.

Accents, as expected, turn to gibberish... :(

I cannot simply use "Set Client Encoding to LATIN1" as the "client"
itself is the script ... :)

Is there a simple way to circumvent this?

Already thankful for any info,
Best regards,
Pedro Doria Meunier

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkrPEukACgkQ2FH5GXCfxAv9LwCeIsLcr7wwcBTzvXqM/ufYysUK
yQ8AniNYuAjQAEktUt7OCS7lZl4kz92f
=qBrj
-----END PGP SIGNATURE-----


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Best data type to use for sales tax percent
Next
From: Greg Smith
Date:
Subject: Re: PostgreSQL reads each 8k block - no larger blocks are used - even on sequential scans