Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356004

Summary: report tag does not show french chars properly
Product: z_Archived Reporter: shekhar <simplysekhar>
Component: BIRTAssignee: Birt-ReportViewer <Birt-ReportViewer-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description shekhar CLA 2011-08-27 11:01:13 EDT
Build Identifier: 2.6

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(frameset servlet).

Any pointers will help us.

Reproducible: Always

Steps to Reproduce:
1. open a new JSP file
2. use birt report tag specify a rptdocument which contains FRENCH CHARS
3. view in browser
Comment 1 shekhar CLA 2011-08-27 11:01:56 EDT
we have used the report tag inside a DIV tag.
Comment 2 shekhar CLA 2011-09-07 08:04:35 EDT
We found the cause. This is happening because the __processWithDiv method of ReportTag class is using ByteArrayInputStream.toString to print the Report content. 

Instead we have to use the ByteArrayInputStream.toString(charset) method, which solves this problem.