Skip to content
Snippets Groups Projects
Commit 77a950cc authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Fix an encoding error

parent bac869ec
No related branches found
No related tags found
No related merge requests found
......@@ -696,7 +696,7 @@ def _read_page_languages_hocr(f):
if not content.strip(): # the file is empty
return dict()
html5_parser = etree.HTMLParser(huge_tree=True)
xml_document = etree.fromstring(content, html5_parser)
xml_document = etree.fromstring(content.encode('utf-8'), html5_parser)
languages = defaultdict(lambda: 0.0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment