Jump to content

Error with RSS


Guy Verville
 Share

Recommended Posts

Hi,

I'm testing the RSS Feed generator module. I'm not sure if I'm doing things correctly.

I have placed the code below in a template.


		$rss = $modules->get("MarkupRSS");
		$rss->title = "Fil RSS";
		$rss->description = "Les plus récentes mises à jour sur le site du CREACC";
		$items = $pages->find("limit=10, sort=-created");
		$rss->render($items); 

Then I created a page from that template. The result is here.

The error given:

This page contains the following errors:
error on line 6 at column 15: Encoding error
Below is a rendering of the page up to the first error.

What can it be?

Link to comment
Share on other sites

It looks like it's something to do with the encoding (or not) of the accented characters in the "description" entry.

I set up an RSS template with the same code and content you provided, and it worked OK for me. In order to reproduce the problem, I had to save the file with an encoding that wasn't UTF-8 (for me, the other main choice is ISO-8859-1).

So - try saving your template file with UTF-8 encoding and see if that solves it.

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...