Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1482

Usage of Charset.defaultCharset() in AbstractJsonpProvider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.1.0.Final, 3.0.20.Final
    • 3.0.19.Final
    • jaxrs
    • None

    Description

      AbstractJsonpProvider currently uses Character.defaultCharset() if no charset is specified in the media type. E.g. on Windows, this causes the JSON parser to use a non-unicode charset for parsing the JSON. Since the default encoding for JSON is UTF-8 according to the specification, it would make more sense to strictly pass UTF-8 as the default charset to the parser or, alternatively, let the parser figure out the charset itself by constructing it entirely without charset.

      Attachments

        Activity

          People

            rsigal@redhat.com Ronald Sigal
            moritz.becker@gmx.at Moritz Becker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: