[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyKDE] unicode two-way conversion
From:       Sebastian =?iso-8859-1?q?K=FCgler?= <sebas () kde ! nl>
Date:       2005-10-25 10:13:03
Message-ID: 200510251213.03963.sebas () kde ! nl
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hi,

(I'm posting to this list since I think it's likely that someone here ran 
across the same problem.)

I'm working on a database frontend for a postgresql database, and I'm having 
an issue with unicode characters that I've put into the Qt UI.

When I read the data from the widget, I'm not able to insert strings into the 
database using unicode. I can replace the offending characters with 
'string'.encode('ascii', 'xmlcharrefreplace').

So what I basically need is a two-way conversion between unicode strings and 
ascii (or at least something that is easily usable together with psycopg and 
postgres' character fields.

Attached scriptlet should show that problem.

Thanks for enlightenment,
-- 
sebas

 http://www.kde.nl | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
This joke was brought to you by the Department of Redundancy Department.


["unicode-test.py" (application/x-python)]
[Attachment #8 (application/pgp-signature)]

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic