New submission from Yogendra kumar soni <soniy...@gmail.com>:

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'.

----------
components: Library (Lib)
messages: 398975
nosy: yogendraksoni
priority: normal
severity: normal
status: open
title: shutil _unpack_zipfile  filename encoding issue
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44836>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to