HQ_Bot icon indicating copy to clipboard operation
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

Open TillST123 opened this issue 7 years ago • 4 comments

Here's the screenshot: screenshot 9 Thank You

TillST123 avatar Apr 10 '18 15:04 TillST123

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

hpate86 avatar Apr 13 '18 17:04 hpate86

me as well

kayslay177 avatar Apr 14 '18 00:04 kayslay177

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.

shaunidiot avatar Apr 14 '18 05:04 shaunidiot

Worked!! Thank You @shaunidiot

hpate86 avatar Apr 14 '18 17:04 hpate86