1
0

Now op file is explicitly in utf-8.

This commit is contained in:
Alexander Andreev 2020-11-18 23:45:06 +04:00
parent 647a787974
commit 8403fcf0f2

View File

@ -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: