From ab4e5546ac0a3ea1856147d3f2705cf4410217df Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 19 Mar 2023 16:50:09 +0100 Subject: [PATCH] encode --- changedetectionio/model/Watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index e95ed78cd..9962fef43 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -253,7 +253,7 @@ class model(dict): # Brotli doesnt have a fileheader to detect it, so we rely on filename # https://www.rfc-editor.org/rfc/rfc7932 with open(filepath, 'rb') as f: - return(brotli.decompress(f.read())) + return(brotli.decompress(f.read()).decode('utf-8')) with open(filepath, 'r', encoding='utf-8', errors='ignore') as f: return f.read()