Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Viewer request encoding
Viewer request encoding [message #874572] Mon, 21 May 2012 07:13 Go to next message
Nicklas Karlsson is currently offline Nicklas Karlsson
Messages: 29
Registered: July 2009
Junior Member
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
Re: Viewer request encoding [message #874579 is a reply to message #874572] Mon, 21 May 2012 07:25 Go to previous messageGo to next message
Nicklas Karlsson is currently offline Nicklas Karlsson
Messages: 29
Registered: July 2009
Junior Member
Well, I tried the filter approach, I see it hit but apparently the SOAP POST request encoding isn't affected by this(?)
Re: Viewer request encoding [message #874637 is a reply to message #874579] Mon, 21 May 2012 09:47 Go to previous messageGo to next message
Nicklas Karlsson is currently offline Nicklas Karlsson
Messages: 29
Registered: July 2009
Junior Member
I also glanced at the RawMessageSender but it didn't give me any insights as to where the request encoding comes from.
Re: Viewer request encoding [message #874899 is a reply to message #874637] Mon, 21 May 2012 17:49 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry for this?

Jason

On 5/21/2012 5:47 AM, Nicklas Karlsson wrote:
> I also glanced at the RawMessageSender but it didn't give me any
> insights as to where the request encoding comes from.
Re: Viewer request encoding [message #875800 is a reply to message #874899] Wed, 23 May 2012 10:39 Go to previous messageGo to next message
Nicklas Karlsson is currently offline Nicklas Karlsson
Messages: 29
Registered: July 2009
Junior Member
I had a previous one in a "cannot reproduce"-state, I re-opened it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=359643

thanks in advance,
Nik
Re: Viewer request encoding [message #876070 is a reply to message #875800] Wed, 23 May 2012 21:07 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Thanks for posting the bug.

Jason


On 5/23/2012 6:39 AM, Nicklas Karlsson wrote:
> I had a previous one in a "cannot reproduce"-state, I re-opened it:
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=359643
>
> thanks in advance,
> Nik
Previous Topic:Birt styles priority
Next Topic:Export feature in report
Goto Forum:
  


Current Time: Mon Sep 15 04:27:34 GMT 2014

Powered by FUDForum. Page generated in 0.04195 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software