Skip to content

UnicodeDecodeError on non-ASCII filenames #6

@nosoop

Description

@nosoop

Hello! I'm currently working on a project that deals with VPKs from the Workshop.

_read_cstring (specifically here) fails when reading non-ASCII filenames. An example Workshop entry is this Back to School pack. Valve's VPK utility lists one file that is rendered as the following in less:

materials/vgui/maps/<D1><EE><E4><E5><F0><E6><E0><ED><E8><E5> onenote.onetoc2

Most other VPKs in the sample I have do not run into this issue.

Not sure what the best approach for this is.

In any case, thanks for all the work on the library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions