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

Character encodings not respected by RestEasy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 2.3.4.Final
    • 1.2.1.GA
    • jaxrs
    • None

    Description

      Setting the character encoding in the @Produces annotation does not cause the data to be encoded in that encoding.
      Simple example:

      @POST
      @Path("init")
      @Produces("text/html;charset=UTF-8")
      public String init(@Context HttpServletRequest request)

      { return new String("\u0131"); }

      Doing a POST to the above REST end point results in non-UTF8 encoded data coming back.

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              aagrawal_jira Andy Agrawal (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: