Posgresql to MSsql encoding problem

Поиск
Список
Период
Сортировка
От Pedro Doria Meunier
Тема Posgresql to MSsql encoding problem
Дата
Msg-id 4ACF12F3.7080808@netmadeira.com
обсуждение исходный текст
Ответы Re: Posgresql to MSsql encoding problem  (Merlin Moncure <mmoncure@gmail.com>)
Re: Posgresql to MSsql encoding problem  (Sam Mason <sam@samason.me.uk>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Best data type to use for sales tax percent
Следующее
От: Greg Smith
Дата:
Сообщение: Re: PostgreSQL reads each 8k block - no larger blocks are used - even on sequential scans