[Devel] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in
position 0: ordinal not in range(128)
Yu Wang
xiaohuwang at hotmail.com
Wed Nov 9 06:53:16 EST 2005
Hi,
I recently moved my blog to Wordpress based at wangxiaohu.org, and updated the
feed URL in config.ini for http://www.cas.mcmaster.ca/~wangy22/friends
But I just found that my feed is not sync'd due to some problems I found in the
log, as shown below:
--Log starts--
INFO:root:Subscribing <http://wangxiaohu.org/index.php/feed>
INFO:root:Updating feed <http://wangxiaohu.org/index.php/feed>
DEBUG:root:Encoding: UTF-8 (data)
DEBUG:root:E-Tag: "eaf48f3f96fb91dc1e3849c204d3d5ee"
DEBUG:root:Modified: November 08, 2005 06:11 PM
DEBUG:root:URI: <http://wangxiaohu.org/index.php/feed>
ERROR:root:Update from <http://wangxiaohu.org/index.php/feed> failed
Traceback (most recent call last):
File "/u1/se02/wangy22/friends/planet.py", line 130, in ?
channel.update()
File "/nfs/u1/se02/wangy22/friends/planetlib.py", line 184, in update
self._update(baseuri, data)
File "/nfs/u1/se02/wangy22/friends/planetlib.py", line 290, in _update
feed.feed(data)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/sgmllib.py", line
95, in feed
self.goahead(0)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/sgmllib.py", line
134, in goahead
k = self.parse_endtag(i)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/sgmllib.py", line
293, in parse_endtag
self.finish_endtag(tag)
File "/usr/src/build/394694-i386/install/usr/lib/python2.3/sgmllib.py", line
333, in finish_endtag
self.unknown_endtag(tag)
File "/nfs/u1/se02/wangy22/friends/feedparser.py", line 358, in unknown_endtag
method()
File "/nfs/u1/se02/wangy22/friends/feedparser.py", line 778, in _end_content
value = self.pop('content')
File "/nfs/u1/se02/wangy22/friends/feedparser.py", line 480, in pop
output = resolveRelativeURIs(output, self.baseuri)
File "/nfs/u1/se02/wangy22/friends/feedparser.py", line 898, in
resolveRelativeURIs
data = p.output()
File "/nfs/u1/se02/wangy22/friends/feedparser.py", line 853, in output
return "".join(self.pieces)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 0: ordinal
not in range(128)
--Log ends--
I have googled for a while but found no solution yet. I have tested some buggy
post in MSN Space, i.e. with the same special chars, and the planet just import
it with no problem. So I think it has problem with either Wordpress' feed export
routine or planetlib.py.
Please help!
More information about the Devel
mailing list