Change encoding to UTF-8 when reading list.xml file(s)

This commit is contained in:
Jylpah committed 2018-11-04 13:26:40 +02:00
1 parent deb907605d
commit d6207f1a7b
1 file changed
+1 -1
+1 -1
View File
@@ -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():