Removing "str(" and ".encode('utf-8', 'replace'))" strings from rss 
function in gluon.serializers.py seems to solve the issue (at least it 
worked for me).

def rss(feed):
    if not 'entries' in feed and 'items' in feed:
        feed['entries'] = feed['items']
    now = datetime.datetime.now()
    rss = rss2.RSS2(title=feed.get('title', '(notitle)'),
                    link=feed.get('link', None),
                    description=feed.get('description', ''),
                    lastBuildDate=feed.get('created_on', now),
                    items=[rss2.RSSItem(
                           title=entry.get('title', '(notitle)'),
                           link=entry.get('link', None),
                           description=entry.get('description', ''),
                           pubDate=entry.get('created_on', now)
                           ) for entry in feed.get('entries', [])])
    return rss.to_xml(encoding='utf-8')

I'm using web2py 2.9.5 and Python 2.7.3.


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to