diff --git a/scrapthechan/cli/scraper.py b/scrapthechan/cli/scraper.py index 41f3745..dc30ccd 100644 --- a/scrapthechan/cli/scraper.py +++ b/scrapthechan/cli/scraper.py @@ -109,7 +109,7 @@ def main() -> None: if parser.op is None: print("No text's there.") elif not exists(join(save_dir, "!op.txt")): - with open(join(save_dir, "!op.txt"), 'w') as opf: + with open(join(save_dir, "!op.txt"), 'w', encoding='utf-8') as opf: opf.write(f"{parser.op}\n") print("Done.") else: