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

Character encodings not respected by RestEasy

XMLWordPrintable

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

      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.

            weli@redhat.com Weinan Li
            aagrawal_jira Andy Agrawal (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: