Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-431

Correct character encoding default for application/json

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.4.6, 5.0-alpha2
    • HttpCore
    • 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

          Activity

            People

              Unassigned Unassigned
              draperp Paul Draper
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: