[Fixed]-UnicodeDecodeError: 'utf8' codec can't decode byte

1👍

— encoding: utf-8

Is changing only encoding of the source file, meaning you can define variables/comments using non-ascii chars.

You can try to use

json.dumps(..., ensure_ascii=False, encoding="ISO-8859-1")

Leave a comment