From 38d8aa8d2806a82805e1163f18ac245423c75f34 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 12 Feb 2022 18:26:43 +0100 Subject: [PATCH] encode to str/bytes --- changedetectionio/fetch_site_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/fetch_site_status.py b/changedetectionio/fetch_site_status.py index d417a36c..28dbe394 100644 --- a/changedetectionio/fetch_site_status.py +++ b/changedetectionio/fetch_site_status.py @@ -125,7 +125,7 @@ class perform_site_check(): if has_filter_rule: if 'json:' in css_filter_rule: stripped_text_from_html = html_tools.extract_json_as_string(content=fetcher.content, jsonpath_filter=css_filter_rule) - original_content_before_filters = stripped_text_from_html + original_content_before_filters = stripped_text_from_html.encode('utf-8') is_text_or_html = False if is_text_or_html: