This commit is contained in:
hahwu 2025-04-16 19:19:02 +08:00
parent f2bf9b3b96
commit f35a015459

View File

@ -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}")