]> git.openstreetmap.org Git - osqa.git/commitdiff
OSQA-792, encode the RSS feed description to utf-8 before we pass it the mark_safe...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Dec 2011 13:27:24 +0000 (13:27 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 16 Dec 2011 13:27:24 +0000 (13:27 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1214 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/feed.py

index 042f042ce650f1292e296bf84b0a506920f51137..420a117eea37ca658437d15ba902a4f852255c89 100644 (file)
@@ -25,7 +25,7 @@ class BaseNodeFeed(Feed):
 
     def __init__(self, request, title, description, url):
         self._title = title
-        self._description = mark_safe(description)
+        self._description = mark_safe(description.encode("utf-8"))
         self._url = url
 
         if old_version: