dropplets icon indicating copy to clipboard operation
dropplets copied to clipboard

Entity not defined in RSS

Open edgardoalz opened this issue 13 years ago • 3 comments

If I use special characters in the post tittles, I get this error in RSS:

This page contains the following errors:

error on line 7 at column 30: Entity 'oacute' not defined Below is a rendering of the page up to the first error.

edgardoalz avatar Jun 10 '13 05:06 edgardoalz

Hi. This is also affecting me. My name also includes special characters, so it doesn't matter what I write, I always get this error.

I temporarily fixed this using HTML replacements, but the RSS feed title and content looks awful.

ghost avatar Sep 14 '13 21:09 ghost

Hi,

in dropplets/includes/feedwriter.php search around the 84th line (public function generateFeed (). At here, insert into header the 'charset=utf-8' to look like this: header('Content-type: text/html; charset=utf-8');

peterrovid avatar Sep 19 '13 14:09 peterrovid

Thank you, peterrovid. Thanks to this I researched a bit, because it was still not working.

W3's Feed Validator threw:

Your feed appears to be encoded as "utf-8", but your server is reporting "US-ASCII"

The solution was to also change the Content-type! The line ended up being:

header("Content-type: application/rss+xml; charset: utf-8");

I think I'm pulling this.

ghost avatar Sep 19 '13 20:09 ghost