UnicodeDecodeError (Python) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

UnicodeDecodeError (Python)

I’m installing google assistant on raspberry pi using snowboy. While running the code I got this error: UnicodeDecodeError: ‘utf-8’ codec cant decode bye 0x80 in position 24: invalid start byte. This is the code that I wrote: https://code.sololearn.com/cOfpY13qVIrz/?ref=app

23rd Jun 2020, 8:08 PM
Asceken
Asceken - avatar
1 Answer
0
I far as I can tell, you are trying to read a b64 file in a UTF-8 system. That is bound to cause some errors as UTF-8 and b64 are not compatible. I am not sure with how you can resolve that but opening a file as bytes (raw bytes), might help.
24th Jun 2020, 9:46 AM
Anubhav Mattoo
Anubhav Mattoo - avatar