fixed bug with UnicodeEncodeError when pull history in text format with output directory
This commit is contained in:
parent
bba95cb5fe
commit
06b0609bad
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ if __name__ == "__main__":
|
|||
os.makedirs(out_dir, exist_ok=True)
|
||||
full_filepath = os.path.join(out_dir, filename)
|
||||
print("Writing output to %s" % full_filepath)
|
||||
with open(full_filepath, mode="w") as f:
|
||||
with open(full_filepath, mode="w", encoding="utf-8") as f:
|
||||
if a.json:
|
||||
json.dump(data, f, indent=4)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue