Viewer request encoding [message #874572] |
Mon, 21 May 2012 03:13  |
Eclipse User |
|
|
|
I have a WebService running on a JBoss AS 7.1.1 (CXF impl) with bidirectional message logging and I test it with SoapUI. I see a UTF-8 encoded request/response with åäöÅÄÖ correctly encoded. When I use the BIRT viewer the request/response is ISO-8859-1 but unfortunately, it looks like CXF wants to deal with UTF-8 since åäöÅÄÖ is now "??????" causing a "Invalid byte 2 of 3-byte UTF-8 sequence".
I looked at the code of the ViewerFilter but it goes
if ((request.getCharacterEncoding() == null) && (this.encoding != null)) {
request.setCharacterEncoding(this.encoding);
}
so I assume the request has already made up it's mind about the encoding. Is there another way of forcing the viewer to always use UTF-8 encoding (short of writing another filter that *always* sets the request encoding?)
Thanks in advance,
Nik
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04744 seconds