From 1e1f0db34739a69a1a8c5796d0b4a5815dddae02 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Wed, 25 Sep 2019 13:37:54 +0200 Subject: [PATCH] stats/known_apks.txt must be in UTF-8 format on all platforms --- fdroidserver/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 2392be9a..0e29814d 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -2403,7 +2403,7 @@ class KnownApks: self.path = os.path.join('stats', 'known_apks.txt') self.apks = {} if os.path.isfile(self.path): - with open(self.path, 'r') as f: + with open(self.path, 'r', encoding='utf-8') as f: for line in f: t = line.rstrip().split(' ') if len(t) == 2: