From 49f82ae2a0189e311896a08557cc35e0d1cf6cad Mon Sep 17 00:00:00 2001 From: jordan Date: Fri, 16 Dec 2011 13:27:24 +0000 Subject: [PATCH] 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 --- forum/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.5