mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
bugfix: dump file with Chinese charactor in Python 3
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user