From 513d80763278aee25e6ef89166534863661e6f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 25 May 2018 16:25:32 +0200 Subject: [PATCH] explicitly open config files as utf-8 --- gallery_dl/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/config.py b/gallery_dl/config.py index 9aba0684..17e8e41c 100644 --- a/gallery_dl/config.py +++ b/gallery_dl/config.py @@ -56,7 +56,7 @@ def load(*files, format="json", strict=False): for conf in configfiles: try: path = util.expand_path(conf) - with open(path) as file: + with open(path, encoding="utf-8") as file: confdict = parsefunc(file) if not _config: _config.update(confdict)