On Fri, 02 Sep 2005 16:11:48 -0700, Erik Max Francis wrote: > Dumbkiwi wrote: > >> Can anyone help me to work through this issue? I'm a bit lost as to where >> to start. > > If you want to convert it to UTF-8, then do so with > > u.decode('utf-8')
I've tried that previously, and get: Traceback (most recent call last): File "/home/matt/karamba/lwbkup/liquid_weather.py", line 2765, in initWidget os.system('dcop kxdocker docker addIcon Current %s "%s : %s" /dev/null GIcon lwp none none none none' %(icopath, QString(situtext.decode('utf-8'), weather.temperature())) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 9: ordinal not in range(128) Thanks for responding though. Matt -- http://mail.python.org/mailman/listinfo/python-list