➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: shutil _unpack_zipfile filename encoding issue
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: yogendraksoni
Priority: normal Keywords:

Created on 2021-08-05 08:48 by yogendraksoni, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg398975 - (view) Author: Yogendra kumar soni (yogendraksoni) Date: 2021-08-05 08:48
shutil _unpack_zipfile uses takes filename using 
name = info.filename 
if files are created in a machine that uses different encoding say utf-8 containing u'\u201c' in filename and the machine where we are extracting has a different encoding say Latin-1.
creating target path using ​_ensure_directory(targetpath)
​is not  able to correctly check target path and creating targetpath also fails.
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u201c'.
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 88999
2021-08-05 08:48:32yogendraksonicreate