One of my users is having problems with my code. It looks like it might be
to do with converting QStrings to Python strings if they are unicode:
The code is:
db = qt.QFontDatabase()
# build a dict up with the list of families
families = {}
for i in db.families():
families[str(i)] = True
This gives an exception:
UnicodeEncodeError: 'ascii' codec can't encode characters in position
0-6: ordinal not in range(128)
I had assumed this would just work. Am I wrong? Any ideas???
Thanks
Jeremy
--
Jeremy Sanders <[EMAIL PROTECTED]>
http://www.jeremysanders.net/ Cambridge, UK
Public Key Server PGP Key ID: E1AAE053
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde