Patches: Browse | Submit New | Admin

[#20048] Cached feeds doesn't work when they are not utf-8 encoded

Date:
2008-05-09 09:02
Priority:
3
Submitted By:
Sergio Cambra (sergiocambra)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Cached feeds doesn't work when they are not utf-8 encoded

Detailed description
It's a patch for bug #20047
http://rubyforge.org/tracker/index.php?func=detail&aid=20047&group_id=775&atid=3061

If you try to get and cache a feed which is not encoded in utf-8, is not saved correctly in database (only is saved
until first non-ASCII character), so when you get the feed from the cache you get no content.

I'm using feedtools 0.2.29
You can try with these feeds for example:
http://heraldo.es/index.php/mod.portadas/mem.rss
http://www.elperiodicodearagon.com/RSS/2.xml

I have attached a patch to set encoding and convert data to utf-8 after fetching.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-05-14 08:33
Sender: Sergio Cambra

Sorry, but I thought I had fixed the patch to update a 
cache feed, but it doesn't work yet. When I fix it and 
check it's working I will submit a new fixed patch
Date: 2008-05-12 12:41
Sender: Sergio Cambra

Patch wasn't working correctly to update a cached feed (it 
was working to fetch initially the feed). I have attached 
a new patch

Attached Files:

Name Description Download
feedtools_encoding.patch Download
feedtools_convert_to_utf8.patch Fixed patch Download

Changes:

Field Old Value Date By
File Added3708: feedtools_convert_to_utf8.patch2008-05-12 12:41sergiocambra
File Added3696: feedtools_encoding.patch2008-05-09 09:02sergiocambra