Now op file is explicitly in utf-8.
This commit is contained in:
parent
647a787974
commit
8403fcf0f2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user