Community
Participate
Working Groups
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
we have used the report tag inside a DIV tag.
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.