title: Python zipfile module can't extract filenames with Chinese characters
body: <p>I'm trying to use a python script to download files from a Chinese service provider (I'm not from China myself). The provider is giving me a .zip file which contains a file which seems to have Chinese characters in its name. This seems to be causing the zipfile module to barf.</p>
  
  <p>Code:</p>
  
  <pre><code>import zipfile
  
  f = "/path/to/zip_file.zip"
  
  if zipfile.is_zipfile(f):
      fz = zipfile.ZipFile(f, 'r')
  </code></pre>
  
  <p>The zipfile itself doesn't contain any non-ASCII characters but the file inside it does. When I run the above script i get the following exception:</p>
  
  <pre><code>Traceback (most recent call last):   File "./temp.py", line 9, in &lt;module&gt;
      fz = zipfile.ZipFile(f, 'r')   File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
      self._RealGetContents()   File "/usr/lib/python2.7/zipfile.py", line 859, in _RealGetContents
      x.filename = x._decodeFilename()   File "/usr/lib/python2.7/zipfile.py", line 379, in _decodeFilename
      return self.filename.decode('utf-8')   File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
      return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xbd in position 30: invalid start byte
  </code></pre>
  
  <p>I've tried looking through the answers to many similar questions:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/19444296/python-2-7-read-file-with-chinese-characters">Read file with Chinese Characters</a></li>
  <li><a href="https://stackoverflow.com/questions/11295835/how-to-extract-zip-files-with-non-unicode-non-latin-filenames">Extract zip files with non-unicode filenames</a></li>
  <li><a href="https://stackoverflow.com/questions/1807063/extract-files-with-invalid-characters-in-filename-with-python">Extract files with invalid characters</a></li>
  </ul>
  
  <p>Please correct me if I'm wrong, but it looks like an <a href="https://bugs.python.org/issue10614" rel="noreferrer">open issue with the zipfile module</a>.</p>
  
  <p>How do I get around this? Is there any alternative module for dealing with zipfiles that I should use? Or any other solution?</p>
  
  <p>TIA.</p>
  
  <p>Edit:
  I can access/unzip the same file perfectly with the linux command-line utility "unzip". </p>