Ensure index is utf-8
This commit is contained in:
parent
28606f8b52
commit
20b0ba62ce
@ -249,8 +249,10 @@ def spiderFeed(feed):
|
|||||||
|
|
||||||
# optionally index
|
# optionally index
|
||||||
if index != None:
|
if index != None:
|
||||||
index[filename('', entry.id)] = \
|
feedid = data.feed.get('id', data.feed.get('link',None))
|
||||||
data.feed.get('id', data.feed.get('link',None))
|
if feedid:
|
||||||
|
if type(feedid) == unicode: feedid = feedid.encode('utf-8')
|
||||||
|
index[filename('', entry.id)] = feedid
|
||||||
|
|
||||||
if index: index.close()
|
if index: index.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user