From: Bryan Date: Tue, 14 Jan 2014 09:18:37 +0000 (-0500) Subject: actually have to specify utf-8, not default as advertised X-Git-Tag: release-20150131~240^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c39891c964b30002aece0fa8a79006c067de1314;p=oweals%2Fkarmaworld.git actually have to specify utf-8, not default as advertised --- 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): """