Skip to content
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

Enforce UTF-8 Encoding #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mossaab0
Copy link

@mossaab0 mossaab0 commented Dec 18, 2018

Without proper encoding, I've got the following error:

Reading GloVe file (may take a while)
- At line 0
Traceback (most recent call last):
  File ".\build_glove.py", line 28, in <module>
    for line_idx, line in enumerate(f):
  File "C:\ProgramData\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 962: character maps to <undefined>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant