préfère Unicode dans la sortie JSON

This commit is contained in:
frabad 2022-05-06 21:16:59 +02:00
parent 3eea3854dc
commit 161b32bacf

View File

@ -33,7 +33,8 @@ def hproc(path_in):
if len(data2) > 0:
path_out = path_in.with_suffix('.json')
with open(path_out,'w') as f:
f.write(json.dumps(data2, indent=2, sort_keys=False))
f.write(json.dumps(data2,
sort_keys=False, ensure_ascii=False, indent=2))
print(f"INFO: {path_in.name} >> {path_out.name}")
if __name__ == "__main__":