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

Character encodings not respected by RestEasy

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 1.2.1.GA
    • Fix Version/s: 2.3.4.Final
    • Component/s: jaxrs
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  weinanli Weinan Li
                  Reporter:
                  aagrawal Andy Agrawal
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: