From c39891c964b30002aece0fa8a79006c067de1314 Mon Sep 17 00:00:00 2001 From: Bryan Date: Tue, 14 Jan 2014 04:18:37 -0500 Subject: [PATCH] actually have to specify utf-8, not default as advertised --- karmaworld/apps/notes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/karmaworld/apps/notes/models.py b/karmaworld/apps/notes/models.py index 722db8e..5e886c3 100644 --- a/karmaworld/apps/notes/models.py +++ b/karmaworld/apps/notes/models.py @@ -246,7 +246,7 @@ class Note(Document): soup = soupfilter(soup) # Return BeautifulSoup cleaned up HTML in UTF-8 # http://www.crummy.com/software/BeautifulSoup/bs4/doc/#output-encoding - return soup.prettify() + return soup.prettify("utf-8") def sanitize_anchor_html(self, soup): """ -- 2.25.1