LQR471814 / Quizizz-Hack

Currently unworking although it did once before.
15 stars 3 forks source link

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 738: illegal multibyte sequence #1

Closed ezxuma closed 4 years ago

ezxuma commented 4 years ago

Traceback (most recent call last): File "parser.py", line 6, in quizInfo = json.loads(f.read()) UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 738: illegal multibyte sequence

LQR471814 commented 4 years ago

Please provide information to reproduce bug. Eg. Input file, OS

ezxuma commented 4 years ago

Input file : 5e929bbbcc6526001beebd6e.json OS : Windows 10 64 bit v1903

LQR471814 commented 4 years ago

Oops, should've phrased that a bit better, can you provide the file as an attachment?

AlexeyZavar commented 4 years ago

I had the same issue with russian language. Try to specify encoding at 5 line (for example, f = open(filename, "r", encoding="utf-8"))

LQR471814 commented 4 years ago

Ok, so I specified encoding in newest commit when reading the file, hopefully that fixes the problem. I'm gonna keep this thread open in case it doesn't.

LQR471814 commented 4 years ago

It's been 6 days, I'm assuming no reply means the issue is fixed. Closing the issue!