HQ_Bot
HQ_Bot copied to clipboard
When running python answer_bot.py it returns 'codec can't decode byte 0x9d in position 94' among other things
Here's the screenshot:
Thank You
I am having the same error "UnicodeDecodeError: ........"
me as well
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.
Worked!! Thank You @shaunidiot