Ticket #650 (closed defect: duplicate)

Opened 7 months ago

Last modified 7 months ago

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

Attachments

123 [Fri, 02 May, 2008].lrf (346.5 KB) - added by kovidgoyal 7 months ago.

Change History

Changed 7 months ago by kovidgoyal

Changed 7 months ago by kovidgoyal

  • status changed from new to closed
  • resolution set to worksforme

works for me, see attached LRF

Changed 7 months ago by VGn

  • status changed from closed to reopened
  • resolution worksforme deleted

I'm happy for you. But i steel have this bug in 0.4.51 My english XP has russian MUI. All temporary files are in c:\temp. The bug raises on any feed.

Changed 7 months ago by kovidgoyal

  • status changed from reopened to closed
  • resolution set to duplicate

duplicate of #644

Note: See TracTickets for help on using tickets.