sushant10 / HQ_Bot

📲 Bot to help solve HQ trivia
MIT License
173 stars 92 forks source link

fix unicode decode error #125

Open novel-yet-trivial opened 6 years ago

novel-yet-trivial commented 6 years ago

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.

novel-yet-trivial commented 6 years ago

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?