Quantcast
Channel: Active questions tagged charset - Stack Overflow
Viewing all articles
Browse latest Browse all 59

Is Cxf modify Outbound Response Message?

$
0
0

I'm making Web service using CXF,nd i didn't set any Interceptor or message Capture.When i return Response my data charset is modified.

my service code like this

@POST@Path("/test")public Respnse test(@Context HttpHeaders header,                    @RequestBody String body) {    String result = 'some make String logic'    return Response.status(200)                   .encoding("euc-kr")                   .header(HttpHeaders.CONTENT_TYPE, "text/xml;charset=euc-kr")                   .entity(result)                   .build();}

I'm sure "result" String has EUC-KR charset.But, when client received Response Message this StringEnglish, Number char is fine, but other language is crashed.

So i just suspect cxf modify outbound some how.I'm using CXF 3.1.x version.


Viewing all articles
Browse latest Browse all 59

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>