This commit is contained in:
Alhaziel01
2020-07-17 17:43:03 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ def file_open(path, mode="r", silent=False, vfs=True):
if fileIo:
return io.FileIO(path, mode)
else:
return io.open(path, mode)
return io.open(path, mode, encoding='utf-8')
except:
logger.error("ERROR when opening file: %s, %s" % (path, mode))
if not silent:
+1 -1
View File
@@ -40,7 +40,7 @@ def getEpg():
with open(xmlName, 'w') as f:
f.write(guide)
# else:
guide = open(xmlName)
guide = filetools.file_open(xmlName, vfs=False)
return guide