From: hernani Date: Sat, 28 Aug 2010 01:20:14 +0000 (+0000) Subject: Fixes the problem reported in http://meta.osqa.net/questions/4581/unicodeencodeerror... X-Git-Tag: live~560 X-Git-Url: https://git.openstreetmap.org/osqa.git/commitdiff_plain/543fee4a008ac7144d64eb606c67f19883ba00b2 Fixes the problem reported in http://meta.osqa.net/questions/4581/unicodeencodeerror-at-feedsrss, forcing the description to be casted to unicode before entering the mark_safe function. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@574 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/feed.py b/forum/feed.py index e514e48..d91fc22 100644 --- a/forum/feed.py +++ b/forum/feed.py @@ -23,7 +23,7 @@ class BaseNodeFeed(Feed): def __init__(self, request, title, description, url): self._title = title - self._description = mark_safe(description) + self._description = mark_safe(unicode(description)) self._url = url if old_version: