diff --git a/readabilipy/__main__.py b/readabilipy/__main__.py index 676bd4d..ecc40c5 100644 --- a/readabilipy/__main__.py +++ b/readabilipy/__main__.py @@ -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(