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
Description: application/python
pgpBQc9LPOOsH.pgp
Description: PGP signature
_______________________________________________ PyKDE mailing list [email protected] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
