Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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