Ticket #650 (closed defect: duplicate)
UnicodeDecodeError when fetching RSS feeds
| Reported by: | VGn | Owned by: | kovidgoyal |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Graphical User Interface | Version: | trunk |
| Keywords: | Cc: |
Description
Fetching feeds... 0% Fetching feeds... 0% Fetching feed News Front Page... 0% Trying to download cover... Traceback (most recent call last):
File "main.py", line 151, in <module> File "main.py", line 146, in main File "main.py", line 134, in run_recipe File "libprs500\web\feeds\news.pyo", line 466, in download File "libprs500\web\feeds\news.pyo", line 586, in build_index File "libprs500\web\feeds\news.pyo", line 488, in feeds2index File "genshi\core.pyo", line 154, in render File "genshi\output.pyo", line 45, in encode File "genshi\output.pyo", line 176, in call File "genshi\output.pyo", line 519, in call File "genshi\output.pyo", line 691, in call File "genshi\core.pyo", line 405, in escape
Unicode Decode Error?: 'ascii' codec can't decode byte 0xc2 in position 2: ordinal not in range(128)
libprs500 version: 0.4.49 os: WinXP professional
In Google Reader feed
and in feed2disk for
#!/usr/bin/env python license = 'GPL v3' import time, string from libprs500.web.feeds.recipes import Basic News Recipe? class Kompulenta(Basic News Recipe?):
title = '123' timefmt = ' [%a, %d %b, %Y]'
remove_tags_before = dict(attrs={'class':'content_other'}) remove_tags_after = dict(attrs={'action':'http://www.compulenta.ru//maillists/subscr_edit.php'})
oldest_article = 7 max_articles_per_feed = 300
feeds = [('News Front Page', 'http://www.compulenta.ru/rss.xml')]
max_recursions = 2 no_stylesheets = True
