Skip to content

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

@kkew3

Description

@kkew3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions