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>
Thu, 16 Jan 2014 01:30:33 +0000 (20:30 -0500)
karmaworld/apps/notes/models.py

index 778c84e64c4bec95e9c7215453c5f04aaa784a32..8cddeee088ea9c0e319f364d34b213d9a7f8ab48 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):
         """