UnicodeDecodeError (Python) | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Resposta
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