logo       

Re: Coding when open conection: msg#00054

python.db.psycopg.devel

Subject: Re: Coding when open conection

В Птн, 10/03/2006 в 17:23 +0100, Federico Di Gregorio пишет:

> If everything is UTF8 then there should be no problems. Are you sure
> those aren't wx problems?

I think translated error messages are delivered to the client as
received by pg from gettext; they don't honour client_encoding. So you
just cannot count on them being in a specific encoding, they use LANG or
LC_MESSAGES or LC_ALL of the system the pg server runs on. It's probably
ok to try to convert them to UTF-8 and if that fails interpret as
ISO-8859-1. Not optimal though. The pg devs are mildly aware of this, I
think.

Markus


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise