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~245 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f51cb05d9525cd6fb19ecd7b829b047f112b939;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 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): """