X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=nfvbench%2Futils.py;h=07a38cbc6b2a9b841150a4164d9a479bc658528d;hb=76c6d3deb39045eec4bf11d189892485e8a9c454;hp=512422df36a97211745604a96c90dea711463517;hpb=fc792bba0bfaaaeca8a9a1b6ca47c9cd9303d41f;p=nfvbench.git diff --git a/nfvbench/utils.py b/nfvbench/utils.py index 512422d..07a38cb 100644 --- a/nfvbench/utils.py +++ b/nfvbench/utils.py @@ -66,7 +66,7 @@ def save_json_result(result, json_file, std_json_path, service_chain, service_ch if filepaths: for file_path in filepaths: LOG.info('Saving results in json file: %s...', file_path) - with open(file_path, 'w') as jfp: + with open(file_path, 'w', encoding="utf-8") as jfp: json.dump(result, jfp, indent=4,