[Devel] encoding problems

Jure Cuhalev gandalf at owca.info
Fri Jan 13 11:28:36 EST 2006


Hello,

I'm having some encoding problems with wordpress feeds. Googling  
around tells me that this should be fixed in planetplanet code more  
than a year ago but  trying the latest nightly stable or Jeffs arch  
repository versions are both failing (Scotts repository is offline).

So I am wondering if I am really using latest planetplanet source (or  
is there some other source) and has this bug been fixed yet?

regards,
Jure Cuhalev


Debug output:

INFO:root:Subscribing <http://www.yukaii.com/?feed=rss2>
INFO:root:Updating feed <http://www.yukaii.com/?feed=rss2>
DEBUG:root:Encoding: UTF-8
DEBUG:root:E-Tag: "ebee6f8b85e1bb45c6c226699cf420df"
DEBUG:root:Modified: January 04, 2006 09:23 PM
DEBUG:root:URI: <http://www.yukaii.com/?feed=rss2>
ERROR:root:Update from <http://www.yukaii.com/?feed=rss2> failed
Traceback (most recent call last):
   File "./planet.py", line 134, in ?
     channel.update()
   File "/home/gandalf/foo/planet-nightly/planetlib.py", line 184, in  
update
     self._update(baseuri, data)
   File "/home/gandalf/foo/planet-nightly/planetlib.py", line 288, in  
_update
     feed.feed(data)
   File "/usr/lib/python2.3/sgmllib.py", line 95, in feed
     self.goahead(0)
   File "/usr/lib/python2.3/sgmllib.py", line 134, in goahead
     k = self.parse_endtag(i)
   File "/usr/lib/python2.3/sgmllib.py", line 293, in parse_endtag
     self.finish_endtag(tag)
   File "/usr/lib/python2.3/sgmllib.py", line 333, in finish_endtag
     self.unknown_endtag(tag)
   File "/home/gandalf/foo/planet-nightly/feedparser.py", line 358,  
in unknown_endtag
     method()
   File "/home/gandalf/foo/planet-nightly/feedparser.py", line 778,  
in _end_content
     value = self.pop('content')
   File "/home/gandalf/foo/planet-nightly/feedparser.py", line 480,  
in pop
     output = resolveRelativeURIs(output, self.baseuri)
   File "/home/gandalf/foo/planet-nightly/feedparser.py", line 897,  
in resolveRelativeURIs
     data = p.output()
   File "/home/gandalf/foo/planet-nightly/feedparser.py", line 853,  
in output
     return "".join(self.pieces)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position  
50: ordinal not in range(128) 



More information about the Devel mailing list