Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Issue Links
- links to