actually have to specify utf-8, not default as advertised
authorBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:18:37 +0000 (04:18 -0500)
committerBryan <btbonval@gmail.com>
Tue, 14 Jan 2014 09:18:37 +0000 (04:18 -0500)
karmaworld/apps/notes/models.py

index 722db8e2aeb0bed2c5f4d8e7c5c1f0c3815b42ff..5e886c3d1f2c01e444a6dff7d9659eee7aecae81 100644 (file)
@@ -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):
         """