Skip to content

Error while decoding string containing japanese characters #31

@dgbogi564

Description

@dgbogi564

With this .lnk file (inside zip) as input, when I run this code:

def get_target(lnk_path):
    with open(lnk_path, "rb") as indata:
        return LnkParse3.lnk_file(indata).info.local_base_path()

print(get_target(lnk_path))

I receive this error (path :

UserWarning: Error while decoding string `F:\笹���も (@sasakomitomo)` ('charmap' codec can't decode byte 0x8f in position 58: character maps to <undefined>)
  warnings.warn(msg)

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