From d6207f1a7b16bcb0e6363dbf2bd1390a97bfdbe7 Mon Sep 17 00:00:00 2001 From: Jylpah Date: Sun, 4 Nov 2018 13:26:40 +0200 Subject: [PATCH] Change encoding to UTF-8 when reading list.xml file(s) --- extractTankopedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractTankopedia.py b/extractTankopedia.py index 01eb16a..406d1b7 100644 --- a/extractTankopedia.py +++ b/extractTankopedia.py @@ -62,7 +62,7 @@ async def extractTanks(blitzAppBase : str, nation: str): print('ERROR: cannot open ' + list_xml_file) return None bu.debug('Opening file: ' + list_xml_file + ' (Nation: ' + nation + ')') - async with aiofiles.open(list_xml_file, 'r') as f: + async with aiofiles.open(list_xml_file, 'r', encoding="utf8") as f: try: tankList = xmltodict.parse(await f.read()) for data in tankList['root'].keys():