bugfix: dump file with Chinese charactor in Python 3

This commit is contained in:
debugtalk
2019-02-20 11:53:04 +08:00
parent 708d26ee83
commit 9c0bbbd248

View File

@@ -661,7 +661,13 @@ def dump_json_file(json_data, pwd_dir_path, dump_file_name):
))
)
else:
json.dump(json_data, outfile, indent=4, separators=(',', ':'))
json.dump(
json_data,
outfile,
indent=4,
separators=(',', ':'),
ensure_ascii=False
)
msg = "dump file: {}".format(dump_file_path)
logger.color_print(msg, "BLUE")