Set JSON output to UTF-8 encoding

This commit is contained in:
Marian Steinbach 2018-04-09 22:40:17 +02:00
parent 48ee1ab8a1
commit 313f56f39e

View file

@ -356,7 +356,7 @@ def main():
# Write result as JSON
output_filename = os.path.join(result_path, "spider_result.json")
with open(output_filename, 'w', encoding="utf8") as jsonfile:
json.dump(results2, jsonfile, indent=2, sort_keys=True)
json.dump(results2, jsonfile, indent=2, sort_keys=True, ensure_ascii=False)
if __name__ == "__main__":