Support utf8 filenames in zip

This commit is contained in:
shortcutme 2017-02-22 11:29:25 +01:00
parent b9a5c94923
commit 8a15bf059d
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def openArchive(archive_path, path_within):
archive = archive_cache[archive_path]
if archive_path.endswith(".zip"):
return archive.open(path_within)
return archive.open(path_within.decode("utf8"))
else:
return archive.extractfile(path_within)