Personal tools
Document Actions

rss script error

Up to Scripts

rss script error

Posted by m_albert at February 20. 2008

Hi,


I've installed the rss parser script which works with the BBC webite but when I try to read a French website I get this kind of error:


UnicodeEncodeError: 'ascii' coded can't encode character u'\xe9' in position 24: ordinal not in range (128).


I suspect it has something to do with Frech accents not being recognized.


What can i do to solve the problem?

Thanks Michael










Re: rss script error

Posted by Snouffelaire at February 20. 2008

You can try adding this line at the very begining of the script :


# -*- coding: utf-8 -*-


I'm not sure it will solve you're problem it's worth trying.


Re: rss script error

Posted by m_albert at February 21. 2008

The    #-*-coding: utf-8-*-    line is already there but it doesn't help.


Any other ideas?


Thanks


Re: rss script error

Posted by Larry Sybrandt at February 23. 2008

Just wondering, what site are you trying to use?




-----------------------------


www.sybraspace.com


Re: rss script error

Posted by m_albert at February 23. 2008

For example for the rss sites listed on this web page


http://www.lemonde.fr/web/rss/0,48-0,1-0,0.html


Thanks for your help.


Powered by Ploneboard
You are here: Home Forum Scripts rss script error

Powered by Plone CMS, the Open Source Content Management System