Skip to content

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 4: character maps to <undefined> #8

@xofeoj

Description

@xofeoj

Ran into the following issue:

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 4: character maps to

Fixed by altering line 25 in textgenrnn.py to indicate the json vocab file is utf-8 encoded:

with open(vocab_path, 'r', encoding='utf8') as json_file:

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