Niclas schrieb:
> Thank you!
> 
> solved it with this:
>  unicode( data.decode('latin_1') )

The unicode around this is superfluous. Either do

unicode(bytestring, encoding)

or

bytestring.decode(encoding)


> and when I write it to the file...
>         f = codecs.open(path, encoding='utf-8', mode='w+')
>         f.write(self.__rssDoc.toxml())


Looks good, yes.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to