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

Added utf-8 encoding when reading emojis.json #15

Merged
merged 1 commit into from
Oct 31, 2018

Conversation

sonej
Copy link
Contributor

@sonej sonej commented Oct 31, 2018

While importing using Windows x64, Anaconda Python 3.6: 'from fansi import fansi' I got the following error.

UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 34: character maps to

I had to add: encoding="utf-8" to line:62 in 'data.py' to get it to import correctly.
with open(emojipath, "r", encoding="utf-8") as data:

@drivasperez
Copy link
Owner

Looks good, thanks!

@drivasperez drivasperez merged commit d1569d2 into drivasperez:master Oct 31, 2018
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.

None yet

2 participants