How to deal with feeds URL's containing '&' characters

Asked by JuanLUX

Hello again,

Two issues I'm suffering with a Joomla RSS feed:

http://www.albacetebalompie.info/index.php?option=com_content&view=category&id=43&format=feed&type=rss

1st) I have tried several options trying to encode this url in order to avoid the problems with the "&" character and pass the url directly to the makefulltextfeed.php script. However nothing works. Any clue on this?

2nd) The pictures included at the feed aren't being presented at the full article shown by the Full-Text RSS reader (the location in all of them is changed as if they were hosted in fivefilters.org

Thanks for your help,

Regards

JuanLUX

Question information

Language:
English Edit question
Status:
Answered
For:
Five Filters Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Keyvan (keyvan) said :
#1

1) If you're creating the URL yourself, I would suggest using an online tool for encoding the URL: http://meyerweb.com/eric/tools/dencoder/ (enter your URL and click Encode). If you're using PHP, you can use the urlencode() function: http://php.net/urlencode
The final URL should look like: http://fivefilters.org/content-only/makefulltextfeed.php?url=http%3A//www.albacetebalompie.info/index.php%3Foption%3Dcom_content%26view%3Dcategory%26id%3D43%26format%3Dfeed%26type%3Drss

2) This will be fixed soon, see https://bugs.launchpad.net/fivefilters/+bug/623122

Hope that helps,

Keyvan

Revision history for this message
JuanLUX (juanlgr) said :
#2

Thank you very much for your quick and complete response.

Just a curious thing about issue #2 (relative links to images pointing to fivefilters.org): I have used the output of the makefulltextfeed.php script to pass the result onto a Joomla component (called feedgator) that inserts the full feeds as articles in the Joomla database. Incredibly when the articles are inserted the links to images located are the source web are correct!!!!

Revision history for this message
Keyvan (keyvan) said :
#3

That's good to hear. :)

It's actually the reason I didn't want to rewrite relative URLs: I expected most feed readers to do it automatically. I think Google Reader does this too. But I recently found out that this behaviour, while nice, is not part of the spec so not all readers will do it.

Revision history for this message
Keyvan (keyvan) said :
#4

Quick update to say that relative URLs are now being rewritten on the fivefilters.org hosted service. This change will be in the 2.0 code release (almost ready).

Revision history for this message
JuanLUX (juanlgr) said :
#5

Very good news. Thanks a lot for your hard work on this.

Can you help with this problem?

Provide an answer of your own, or ask JuanLUX for more information if necessary.

To post a message you must log in.