New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 4: character maps to <undefined> #8
Comments
add errors='ignore' parameter too, json should be encoded in satandard ascii |
I added the ignore parameter during the refactor. Let me know if there are still issues. |
I got the same error when I run my file |
adding encoding='utf8', errors='ignore' is a form of dirty fix for that when you dont know the file encoding, chardet would be the good option there |
I got this error when i opened the .pickle file normally. But when I gave open("filename.pickle", "rb") the error was gone |
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:
The text was updated successfully, but these errors were encountered: