Skip to content

Commit

Permalink
[fix] utf8 encoded input docs correct
Browse files Browse the repository at this point in the history
  • Loading branch information
stef committed Oct 24, 2012
1 parent a68ce29 commit 4315891
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions view/views.py
Expand Up @@ -211,12 +211,12 @@ def createDoc(request):
#if not "<html>" in doc:
# doc="<html><head><title></title></head><body>%s</body></html>" % doc
docid=form.cleaned_data['docid']
raw=unicode(str(tidy.parseString(doc.encode('utf8'), **{'output_xhtml' : 1,
'add_xml_decl' : 0,
'indent' : 0,
'tidy_mark' : 0,
'doctype' : "strict",
'wrap' : 0})),'utf8')
raw=unicode(str(tidy.parseString(doc, **{'output_xhtml' : 1,
'add_xml_decl' : 0,
'indent' : 0,
'tidy_mark' : 0,
'doctype' : "strict",
'wrap' : 0})),'utf8')
d=Doc(raw=raw.encode('utf8'),docid=docid.encode('utf8'), owner=request.user)
if not 'stems' in d.__dict__ or not d.stems:
# let's calculate and cache the results
Expand Down

0 comments on commit 4315891

Please sign in to comment.