Skip to content

Commit

Permalink
Force convert text to unicode. I miss NSString so much.
Browse files Browse the repository at this point in the history
  • Loading branch information
elland committed Nov 25, 2013
1 parent 38c748f commit 713d6e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions socrates/models.py
Expand Up @@ -133,6 +133,9 @@ def _process_contents(self, text):
- textile
- html
"""

text = unicode(text, "utf-8")

p = self.file_type
p = p.lower()

Expand Down

0 comments on commit 713d6e4

Please sign in to comment.