From 47b33f4baab4a1dcb3bec39c205a35f9b0a4f6d0 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 9 Apr 2020 19:10:45 +0200 Subject: [PATCH] morss: specify server output encoding --- morss/morss.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/morss/morss.py b/morss/morss.py index 4caa060..8a3f2f7 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -554,6 +554,8 @@ def cgi_app(environ, start_response): else: headers['content-type'] = 'text/xml' + headers['content-type'] += '; charset=utf-8' + crawler.default_cache = crawler.SQLiteCache(os.path.join(os.getcwd(), 'morss-cache.db')) # get the work done