Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » French Characters in HTML report
French Characters in HTML report [message #719190] Fri, 26 August 2011 06:32 Go to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
We are using BIRT Viewer (Report) tags to display in paginated HTML. The rptDocument contains the right charcterset, b'cos the PDF and excel comes fine. But in HTML, they are not showing up in the right way. The DB charset is WE8MSWIN1252.

We tried the following
1. Setting the charset to UTF-8/windows-1252 in meta tags of the jsp where we include the report tag.
2. In the servlet, where we call the jsp of report, we have set the request encoding to Cp1252
3. Set the locale to FR_CA in the report tag

But still its not working.
FYI, it works well in the default BIRT viewer.

Any pointers will help us.

Thanks
Re: French Characters in HTML report [message #719269 is a reply to message #719190] Fri, 26 August 2011 10:44 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I am not certain it matters but have you tried setting the locale to fr_CA
instead of
FR_CA

Jason

On 8/26/2011 6:32 AM, sam wrote:
> We are using BIRT Viewer (Report) tags to display in paginated HTML. The
> rptDocument contains the right charcterset, b'cos the PDF and excel
> comes fine. But in HTML, they are not showing up in the right way. The
> DB charset is WE8MSWIN1252.
>
> We tried the following
> 1. Setting the charset to UTF-8/windows-1252 in meta tags of the jsp
> where we include the report tag.
> 2. In the servlet, where we call the jsp of report, we have set the
> request encoding to Cp1252
> 3. Set the locale to FR_CA in the report tag
>
> But still its not working. FYI, it works well in the default BIRT viewer.
>
> Any pointers will help us.
>
> Thanks
Re: French Characters in HTML report [message #719344 is a reply to message #719269] Fri, 26 August 2011 14:44 Go to previous messageGo to next message
shekhar  is currently offline shekhar
Messages: 6
Registered: June 2011
Junior Member
hi Jason
I am part of Sam's team...
we did the samething as u mentioned..I.e.,we have given fr_CA for locale...

we tried the same rpt document with BIRT viewer (frameset servlet)..it is coming correctly...

but we are facing problem with BIRT REPORT TAG..Sad
Re: French Characters in HTML report [message #719389 is a reply to message #719344] Fri, 26 August 2011 17:36 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

I was able to reproduce the issue. It appears there is a bug with the
report tag. Can you log a bugzilla entry for this? As a work around can
you use the viewer tag and turn off the toolbars or use iframe container
with report tag instead of div tag?

Jason



On 8/26/2011 2:44 PM, shekhar wrote:
> hi Jason I am part of Sam's team...
> we did the samething as u mentioned..I.e.,we have given fr_CA for locale...
>
> we tried the same rpt document with BIRT viewer (frameset servlet)..it
> is coming correctly...
>
> but we are facing problem with BIRT REPORT TAG..:(
Re: French Characters in HTML report [message #719511 is a reply to message #719389] Sat, 27 August 2011 11:05 Go to previous messageGo to next message
shekhar  is currently offline shekhar
Messages: 6
Registered: June 2011
Junior Member
Jason
Thank you for the reply..we will try out the options specified above..

we have also created a bug in bugzilla..here is the reference number# 356004

Thank you
shekhar
Re: French Characters in HTML report [message #719827 is a reply to message #719511] Mon, 29 August 2011 03:06 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
We cannot go with Viewer tag and report tag with iframe. The reason is, if there is an iframe in the browser, it is not ADA compliant. Hence we went with another approach.
Instead of using report tag, we included preview servlet. Now its working as expected

Thanks
Re: French Characters in HTML report [message #721027 is a reply to message #719827] Wed, 31 August 2011 14:10 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
we had other problems having preview servlet.
preview servlet spits out report embedded within HTML tags. But we need it as a reportlet as we show other stuff in the report. Hence we extended the report taglib code in our code fixed the original issue and used it.

Thanks
Re: French Characters in HTML report [message #721118 is a reply to message #721027] Wed, 31 August 2011 18:43 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

How did you fix the original issue?

Jason

On 8/31/2011 2:10 PM, vavesw wrote:
> we had other problems having preview servlet.
> preview servlet spits out report embedded within HTML tags. But we need
> it as a reportlet as we show other stuff in the report. Hence we
> extended the report taglib code in our code fixed the original issue and
> used it.
>
> Thanks
Re: French Characters in HTML report [message #721149 is a reply to message #721118] Wed, 31 August 2011 22:11 Go to previous messageGo to next message
sam va is currently offline sam va
Messages: 121
Registered: July 2011
Senior Member
Changed the following line

String content = ByteArrayOutputStream.toString();

to

String content = ByteArrayOutputStream.toString("UTF-8");


Thanks
Swamy
Re: French Characters in HTML report [message #721163 is a reply to message #721149] Thu, 01 September 2011 00:13 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Thanks for the update. Can you add that to the bugzilla entry so it
gets fixed?

Jason

On 8/31/2011 10:11 PM, vavesw wrote:
> Changed the following line
>
> String content = ByteArrayOutputStream.toString();
>
> to
>
> String content = ByteArrayOutputStream.toString("UTF-8");
>
>
> Thanks
> Swamy
Previous Topic:Export data option on BIRT report
Next Topic:no results
Goto Forum:
  


Current Time: Thu Jul 24 11:24:10 EDT 2014

Powered by FUDForum. Page generated in 0.02571 seconds