Skip to content

Commit

Permalink
Merge pull request #112 from haron/patch-1
Browse files Browse the repository at this point in the history
Fix for UnicodeDecodeError: 'utf-8' codec can't decode bytes
  • Loading branch information
jemrobinson authored Nov 25, 2024
2 parents 41d47eb + 3e7a9de commit f9b9987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readabilipy/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def main():

args = parser.parse_args()

with open(args.input_file, encoding="utf-8") as h:
with open(args.input_file, encoding="utf-8", errors="replace") as h:
html = h.read()

article = simple_json_from_html_string(
Expand Down

0 comments on commit f9b9987

Please sign in to comment.