Guy Verville Posted December 26, 2013 Posted December 26, 2013 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?
Craig Posted December 26, 2013 Posted December 26, 2013 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. 4
Guy Verville Posted December 26, 2013 Author Posted December 26, 2013 Thank you for your answer. That was the problem. That's kinda weird because Coda has never failed me with this. I saved the file using Textwrangler.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now