From 1eb7a022ff5a0c108ffa924b5c860d3e360dc68c Mon Sep 17 00:00:00 2001 From: Niels Giorno Date: Fri, 28 Aug 2020 12:50:26 +0200 Subject: [PATCH] Fix the loading of playerskins DB on Windows Windows does not load the file with utf8 encoding by default, so I had to specify it. --- lokrez/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lokrez/__init__.py b/lokrez/__init__.py index dd7239a..3874a89 100644 --- a/lokrez/__init__.py +++ b/lokrez/__init__.py @@ -200,7 +200,7 @@ def main(): # Initialize PLAYERSKINS db log.debug("loading playerskins db from '{}'" \ .format(args.playerskinsdb)) - with args.playerskinsdb.open("r") as f: + with args.playerskinsdb.open("r", encoding="utf8") as f: smashgg.PLAYERSKINS = json.load(f) #