Skip to content

Commit

Permalink
whatsnew-1.6: more detail in note on JSON charset
Browse files Browse the repository at this point in the history
Addressing Pylons#236
  • Loading branch information
rylz committed Jun 2, 2016
1 parent dcbb573 commit 18009c4
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/whatsnew-1.6.txt
Expand Up @@ -65,8 +65,17 @@ Bugfixes
https://github.com/Pylons/webob/pull/183 for more information.

- The application/json media type does not allow for a charset as discovery of
the encoding is done at the JSON layer. Upon initialization of a Response
WebOb will no longer add a charset if the content-type is set to JSON. See
https://github.com/Pylons/webob/pull/197 and
the encoding is done at the JSON layer, and it must always be UTF-{8,16,32}.
See the IANA spec at
https://www.iana.org/assignments/media-types/application/json, which notes

No "charset" parameter is defined for this registration.
Adding one really has no effect on compliant recipients.

RFC4627 describes the method for encoding discovery using the JSON content
itself. Upon initialization of a Response WebOb will no longer add a charset
if the content-type is set to JSON. See
https://github.com/Pylons/webob/pull/197,
https://github.com/Pylons/webob/issues/237 and
https://github.com/Pylons/pyramid/issues/1611

0 comments on commit 18009c4

Please sign in to comment.