]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/feed.py
OSQA-792, encode the RSS feed description to utf-8 before we pass it the mark_safe...
[osqa.git] / forum / feed.py
index 7bf72072d6ada3546fe3a4e2d037357c159df307..420a117eea37ca658437d15ba902a4f852255c89 100644 (file)
@@ -25,7 +25,7 @@ class BaseNodeFeed(Feed):
 
     def __init__(self, request, title, description, url):
         self._title = title
-        self._description = mark_safe(unicode(description))
+        self._description = mark_safe(description.encode("utf-8"))
         self._url = url
 
         if old_version: