From 5b6d0966231f4a5472f37577f4b63d9db957bf5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 1 Jun 2020 09:09:18 +0200 Subject: [PATCH] misc: always load site-options as utf-8 (#43490) --- wcs/qommon/publisher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcs/qommon/publisher.py b/wcs/qommon/publisher.py index 58c637437..19e681ba7 100644 --- a/wcs/qommon/publisher.py +++ b/wcs/qommon/publisher.py @@ -363,7 +363,7 @@ class QommonPublisher(Publisher, object): if not os.path.exists(site_options_filename): return try: - self.site_options.read(site_options_filename) + self.site_options.read(site_options_filename, encoding='utf-8') except: self.get_app_logger().error('failed to read site options file') return