From 12d16758afab4073867bd5f000ba8ad0857931a9 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 13 Mar 2022 10:52:56 +0100 Subject: [PATCH] JSON use the original char encoding --- changedetectionio/html_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/changedetectionio/html_tools.py b/changedetectionio/html_tools.py index dc7c846c..fda2cf25 100644 --- a/changedetectionio/html_tools.py +++ b/changedetectionio/html_tools.py @@ -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