You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Paul Draper (JIRA)" <ji...@apache.org> on 2016/09/02 10:17:20 UTC
[jira] [Created] (HTTPCORE-431) Correct character encoding default
for application/json
Paul Draper created HTTPCORE-431:
------------------------------------
Summary: Correct character encoding default for application/json
Key: HTTPCORE-431
URL: https://issues.apache.org/jira/browse/HTTPCORE-431
Project: HttpComponents HttpCore
Issue Type: Improvement
Components: HttpCore
Reporter: Paul Draper
Priority: Minor
RFC 4627 and RFC 7159 require that parsers auto-detect the encoding of application/json. UTF-8 is the suggested default, though it's possible to detect the encoding of valid JSON unambiguously.
Currently, EntityUtils.toString defaults to ISO-8859-1 (the default for text formats without a charset parameter).
Given how common application/json is, it would be great for EntityUtils.toString to use the correct encoding.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org