[PyKDE] QString to Python string conversion trouble
boud at valdyas.org
Wed Oct 24 11:08:25 BST 2001
-----BEGIN PGP SIGNED MESSAGE-----
On Wednesday 24 October 2001 10:58, Phil Thompson wrote:
> >===== Original Message From Andreas Gerstlauer <gerstl at ics.uci.edu> =====
> >In general, out of curiosity (since you mentioned that two other people
> >convinced you to do it like that), what was the rationale for choosing the
> >escape encoding (as opposed to say an UTF-8 encoding)?
> Errm - a guess based on ignorance. You have to remember that Unicode is
> related to "foreign" languages and that I am English - so I am genetically
> incapable of understanding this properly ;)
I didn't try to convince Phil that escaped unicode was the way to go - just
that having exceptions thrown unless you saved the setdefaultencoding function
and used that to set the default encoding for your app was bad.
Returning a Unicode object instead of a string object from a QString sounds fine
to me. I'm currently far too ill to really try hacking PyQt, though.
Anyway, I hope to have another week to bring the book up to date, since I
now spend rather a lot of text on unicode problems...
Boudewijn Rempt | http://www.valdyas.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
-----END PGP SIGNATURE-----
More information about the PyQt