CXF
  1. CXF
  2. CXF-2781

Charset encoding other than UTF-8 (as ISO-8859-1) not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 2.2.8, 2.3
    • Component/s: JAX-RS
    • Labels:
      None
    • Environment:

      Windows XP SP3 - Eclipse 3.5 - Spring - CXFServlet - Tomcat 5.5.12

      Description

      Simple REST service like this :

      HelloService.java

      package demo.jaxrs.server;

      import javax.ws.rs.GET;
      import javax.ws.rs.Path;
      import javax.ws.rs.Produces;

      @Path("/helloservice/")
      public class HelloService {

      @GET
      @Path("/hello")
      @Produces("text/html;charset=ISO-8859-1")
      public String sayHello()

      { return "Hello, my name is Félix Agnès"; }

      }

      When called (in my environnement : http://localhost:58010/geoservices/ws/TEST/helloservice/hello) produce :

      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Date: Thu, 22 Apr 2010 13:44:18 GMT
      Content-Type: text/html;charset=ISO-8859-1
      Content-Length: 31

      Hello, my name is Félix Agnès

      Latin characters like "éèà" are encoded in UTF-8 !!!

        Activity

        Olivier Rousseil created issue -
        Olivier Rousseil made changes -
        Field Original Value New Value
        Summary Charset encoding other than UTF-8 (as ISO-8859-1) don't work Charset encoding other than UTF-8 (as ISO-8859-1) not working
        Environment Windows XP SP3 Windows XP SP3 - Eclipse 3.5 - Spring - CXFServlet
        Olivier Rousseil made changes -
        Environment Windows XP SP3 - Eclipse 3.5 - Spring - CXFServlet Windows XP SP3 - Eclipse 3.5 - Spring - CXFServlet - Tomcat 5.5.12
        Sergey Beryozkin made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.3 [ 12313982 ]
        Fix Version/s 2.2.8 [ 12314535 ]
        Resolution Fixed [ 1 ]
        Daniel Kulp made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12509103 ] Default workflow, editable Closed status [ 12604778 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Olivier Rousseil
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development