Skip to content

Commit 13e33f7

Browse files
committed
Ensure input files are read as UTF-8
Fixes: #44
1 parent d15122c commit 13e33f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def remove_unused_external(html):
386386

387387

388388
def preprocess_html_file(root, fn, rename_map):
389-
parser = etree.HTMLParser()
389+
parser = etree.HTMLParser(encoding='utf-8')
390390
html = etree.parse(fn, parser)
391391
output = io.StringIO()
392392

0 commit comments

Comments
 (0)