[Tutor] rss feed reader, but having trouble with unicode
rui
ruivaldo at gmail.com
Tue Feb 26 20:59:47 CET 2008
Hello Tom,
Try doing this:
xml = unicode(xml, encoding, "ignore")
elem = ElementTree.fromstring(xml.encode("utf8"))
> #do stuff with elem...
>
> feed.xml = xml
> feed.save()
>
>
> Thanks for your time :-)
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Rui
http://ruivaldo.wordpress.com
"Rubi? Aquela novela do SBT?"
~ Carla Perez sobre Ruby
"Em Python, tudo é objeto, além de lindo e maravilhoso."
~ Caetano Veloso sobre Python
More information about the Tutor
mailing list