Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356004 - report tag does not show french chars properly
Summary: report tag does not show french chars properly
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportViewer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-27 11:01 EDT by shekhar CLA
Modified: 2011-09-07 08:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.