Commit 7c26b4b8 authored by Vilem Ded's avatar Vilem Ded
Browse files

force UTF-8 encoding

parent 6ec4e765
......@@ -60,7 +60,7 @@ for fname in fileList:
fname_json = pathlib.Path(fname).stem + ".json"
fname_out = os.path.join(args.output_dir, fname_json)
with open(fname_out, 'w') as outfile:
with open(fname_out, 'w', encoding='utf-8') as outfile:
save_exported_datasets_to_file(dataset_dict, outfile)
counter += 1
......@@ -147,4 +147,4 @@ def save_exported_datasets_to_file(exported_dataset, output_file):
"$schema": "",
"items": items
return json.dump(obj, output_file, indent=4)
return json.dump(obj, output_file, ensure_ascii = False, indent=4)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment