Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Unzip with different encoding
#Nothing on stackoverflow works!
import zipfile
import sys
zip = zipfile.ZipFile('FILENAME', 'r')
zipinfo = zip.infolist()
for _file in zipinfo:
_file.filename = bytes(_file.filename).decode('cp949')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment