logo       

Re: Coding when open conection (+- Solved): msg#00056

python.db.psycopg.devel

Subject: Re: Coding when open conection (+- Solved)

Federico Di Gregorio escribió:
Il giorno ven, 10/03/2006 alle 11.12 +0100, Oswaldo Hernández ha
scritto:

Hi all,

I'm new in this list. My name is Oswaldo and my english is bad (sorry).

I have a problem when I try to connect with a bad user or a bad database name:

Server:
Postgres 8.1 windowsXP
Database encoding: UTF8
postgres.conf
client_encoding UTF8
lc_messages es_ES


I suppose psycopg is trying to parse as UTF8 the error messages that are
in es_ES.latin9 encoding. Right now I don't understand why this happens
but I'll investigate. Do you have the option to set the messages to
es_ES but with UTF8 encoding?


Hi,

I forced a conversion of the postgresql error string from latin1 to unicode and now works fine in the connect moment and after of client_encoding.


Thanks to all for your replies.



--
*****************************************
Oswaldo Hernández
oswaldo-aXkDUzFGsCcxAGwisGp4zA@xxxxxxxxxxxxxxxx
*****************************************


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

News | FAQ | advertise