[
https://issues.apache.org/jira/browse/CXF-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859822#action_12859822
]
Daniel Kulp commented on CXF-2781:
----------------------------------
Well, this would be OK if the charset on the response was set to UTF-8 instead
of ISO-8859-1. I personally would go that rought. If a charset is set
programatically somehow, then default to UTF-8 and set the charset. It's the
safest way to make sure data isn't lost using default settings.
> Charset encoding other than UTF-8 (as ISO-8859-1) don't work
> ------------------------------------------------------------
>
> Key: CXF-2781
> URL: https://issues.apache.org/jira/browse/CXF-2781
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 2.2.7
> Environment: Windows XP SP3
> Reporter: olivier rousseil
>
> 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 !!!
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.