Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-28 Thread Tom
Yeah I was considering using that. Thanks for the tip. On 28/02/2008, Michael Langford <[EMAIL PROTECTED]> wrote: > feedparser.org also works really well for this sort of thing. Does a > lot of the unicode automagically for you. > >--michael > > > On Wed, Feb 27, 2008 at 8:58 AM, Tom <[E

Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-28 Thread Michael Langford
feedparser.org also works really well for this sort of thing. Does a lot of the unicode automagically for you. --michael On Wed, Feb 27, 2008 at 8:58 AM, Tom <[EMAIL PROTECTED]> wrote: > Finally got it working. I used your suggestion Rui, but I also had to > change the charset encoding th

Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-27 Thread Tom
Finally got it working. I used your suggestion Rui, but I also had to change the charset encoding that my database was using. Changed from Latin-1 to UCS2. I read http://www.joelonsoftware.com/articles/Unicode.html too. Essential reading. Thanks. On 26/02/2008, rui <[EMAIL PROTECTED]> wrote: > H

Re: [Tutor] rss feed reader, but having trouble with unicode

2008-02-26 Thread rui
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@python.o

[Tutor] rss feed reader, but having trouble with unicode

2008-02-26 Thread Tom
I'm trying to write a little rss feed reader, but having trouble with unicode. I would appreciate some help as I feel I'm going round in circles. Even when the save command works, ElementTree won't or vice-versa. You can see what I've been trying from my commented out lines. I think there is a pro