mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 18:27:05 +02:00
Change encoding to UTF-8 when reading list.xml file(s)
This commit is contained in:
1 parent
deb907605d
commit
d6207f1a7b
1 file changed
+1
-1
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user