Skip to content

Commit d371ffe

Browse files
committed
Merge pull request #63 from zobo/issue_62
Added output encoding to utf8.
2 parents 04bb89a + 375c03a commit d371ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydocx/parsers/Docx2Html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def main():
215215
sys.exit()
216216
html = Docx2Html(path_to_docx).parsed
217217
with open(path_to_html, 'w') as f:
218-
f.write(html)
218+
f.write(html.encode('utf-8'))
219219

220220
if __name__ == '__main__':
221221
main()

0 commit comments

Comments
 (0)