From: jordan Date: Fri, 16 Dec 2011 13:27:24 +0000 (+0000) Subject: OSQA-792, encode the RSS feed description to utf-8 before we pass it the mark_safe... X-Git-Tag: live~103 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/49f82ae2a0189e311896a08557cc35e0d1cf6cad OSQA-792, encode the RSS feed description to utf-8 before we pass it the mark_safe function git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1214 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/feed.py b/forum/feed.py index 042f042..420a117 100644 --- a/forum/feed.py +++ b/forum/feed.py @@ -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: