JSON diff/preview should use utf-8 encoding where possible (#465)

This commit is contained in:
dgtlmoon
2022-03-13 11:37:51 +01:00
committed by GitHub
parent 60a9a786e0
commit ffad5cca97
2 changed files with 7 additions and 3 deletions

View File

@@ -78,7 +78,8 @@ def _parse_json(json_data, jsonpath_filter):
# Re 265 - Just return an empty string when filter not found
return ''
stripped_text_from_html = json.dumps(s, indent=4)
# Ticket #462 - allow the original encoding through, usually it's UTF-8 or similar
stripped_text_from_html = json.dumps(s, indent=4, ensure_ascii=False)
return stripped_text_from_html