I think you need
u.encode('utf-8')
.encode() turns unicode into a byte string, .decode() turns a byte string into
unicode.
Jeff
pgpCGSuYcXhRF.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
Dumbkiwi wrote:
> 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,
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:
T
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')
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W &
I've got a rather large python script that I write and maintain. It has
some interaction with other programmes on the linux/kde desktop through
the dcop interface. This script also uses the gettext module to enable
the output of the script to be translated into several languages,
including utf-8