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

fix unicode decode error #125

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

Conversation

novel-yet-trivial
Copy link

closes #90

Since python opens files in whatever the default character encoding for a given system is, computers that do not use UTF8 by default will raise a unicode error when reading fancy quotes. This PR both removes unicode characters from the data files and specifies the encoding to use.

Copy link
Owner

@sushant10 sushant10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it work on both Mac and Windows?

Copy link
Owner

@sushant10 sushant10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of random space changes in answer_bot.py

@novel-yet-trivial
Copy link
Author

novel-yet-trivial commented Jun 14, 2018

Windows 10 was tested working by this guy.

I can't test a Mac; I don't have one. But I see no reason why not, nothing OS specific was changed.

The space changes are my editor removing trailing whitespace in accordance with good coding style. Do you want me to revert that?

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.

unicodedecode error
2 participants