PyEasyArchive icon indicating copy to clipboard operation
PyEasyArchive copied to clipboard

UnicodeDecodeError on files in archive if filename contains non-ASCII characters (e.g. CJK characters)

Open kkew3 opened this issue 4 years ago • 0 comments

In libarchive/adapters/archive_read.py line 61 the codec is set to _ASCII_ENCODING, which in line 18 is hard-coded into 'ascii':

filepath = filepath.encode(_ASCII_ENCODING)
_ASCII_ENCODING = 'ascii'

Replacing _ASCII_ENCODING with 'utf-8' temporarily solves my problem.

kkew3 avatar Dec 05 '21 10:12 kkew3