]> 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 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: