优化
This commit is contained in:
parent
f2bf9b3b96
commit
f35a015459
@ -47,7 +47,7 @@ for file_cfg in file_list:
|
||||
indexed_data[index] = row_dict
|
||||
|
||||
# 将JSON写入目标文件
|
||||
with open(target_file_path, 'w', encoding='utf-16') as json_file:
|
||||
with open(target_file_path, 'w', encoding='utf-8') as json_file:
|
||||
json.dump(indexed_data, json_file, ensure_ascii=False, indent=4)
|
||||
|
||||
print(f"Converted: {source_file_path} to {target_file_path}")
|
||||
Loading…
Reference in New Issue
Block a user