[docs] [issue10976] json.loads() throws TypeError on bytes object

Serhiy Storchaka report at bugs.python.org
Thu Apr 26 10:34:32 CEST 2012

Serhiy Storchaka <storchaka at gmail.com> added the comment:

> What if the returned JSON uses a charset other than utf-8 ?

According to RFC 4627: "JSON text SHALL be encoded in Unicode.  The default encoding is UTF-8." RFC 4627 also offers a way to autodetect other Unicode encodings.

nosy: +storchaka

Python tracker <report at bugs.python.org>

More information about the docs mailing list