sushant10 / HQ_Bot

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

When running python answer_bot.py it returns 'codec can't decode byte 0x9d in position 94' among other things #76

Open TillST123 opened 6 years ago

TillST123 commented 6 years ago

Here's the screenshot: screenshot 9 Thank You

hpate86 commented 6 years ago

I am having the same error "UnicodeDecodeError: ........"

kayslay177 commented 6 years ago

me as well

shaunidiot commented 6 years ago

At https://github.com/sushant10/HQ_Bot/blob/master/answer_bot.py#L64,

Replace sample_questions = json.loads(open("Data/questions.json").read()) with sample_questions = json.loads(open("Data/questions.json", encoding="utf8").read())

Works for me.

hpate86 commented 6 years ago

Worked!! Thank You @shaunidiot