This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients ezio.melotti, ncoghlan, rhettinger
Date 2016-08-15.07:20:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
In two recent Python 3 porting projects, a key incompatibility I encountered was that "json.loads(data)" on UTF-8 encoded bytes required an explicit decoding step under Python 3, rather than implicitly decoding the data as UTF-8.

Unlike many other wire formats, assuming UTF-8 for binary JSON data is a pretty safe assumption, and there's no type ambiguity here since the output type is still a properly decoded JSON object.

(This RFE has been split out from the larger RFE at #19837, which also covers implicit *encoding* to UTF-8, which is a more questionable idea)
History
Date User Action Args
2016-08-15 07:20:28ncoghlansetrecipients: + ncoghlan, rhettinger, ezio.melotti
2016-08-15 07:20:28ncoghlansetmessageid: <[email protected]>
2016-08-15 07:20:28ncoghlanlinkissue27765 messages
2016-08-15 07:20:27ncoghlancreate