Skip to content

Commit

Permalink
Merge pull request #105 from hanzalajamash/master
Browse files Browse the repository at this point in the history
Issue#100 Fixed UnicodeEncodeError: 'charmap' codec can't encode char
  • Loading branch information
jemrobinson authored Aug 18, 2023
2 parents f56c9f0 + ce90a8c commit 8905cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readabilipy/simple_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def simple_json_from_html_string(html, content_digests=False, node_indexes=False

if use_readability:
# Write input HTML to temporary file so it is available to the node.js script
with tempfile.NamedTemporaryFile(delete=False, mode='w+') as f_html:
with tempfile.NamedTemporaryFile(delete=False, mode="w+", encoding="utf-8") as f_html:
f_html.write(html)
f_html.close()
html_path = f_html.name
Expand Down

0 comments on commit 8905cb9

Please sign in to comment.