From 1f51cb05d9525cd6fb19ecd7b829b047f112b939 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 778c84e..8cddeee 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