Community
Participate
Working Groups
We had some reports running perfectly fine with BIRT 2.3.2 , in those reports we have some TextInput with HTML . Now with upgraded BIRT engine i.e. 2.5.2 , we are seeing a junk character "Â" in the TextInput every time there is in the TextInput.
can you attach the sample reports?
Created attachment 167690 [details] Report run ouput with the issue
Created attachment 167691 [details] RPT design file with the issue
I have uploaded the rptdesign file and the screenshot of the issue
Could you please replace <value-of>I18NUtils.getLocalizedString("LUN_NOT_FULL_TITLE", locale)</value-of> in html text with a constants like <value-of>"abc"</value-of>, since I can not get the java code
Created attachment 167892 [details] Updated rpt design file with no java code Updated rpt design file with no java code
can't reproduce it. Is it your browser's character encoding issue? It should be UTF-8.
I have checked the encoding of the JSP file in which we are inserting the report output and the encoding it UTF-8 only. We are generating reports using the following java code. IDesignEngine birtDesignEngine = BirtEngine.getBirtDesignEngine(); SessionHandle sessionHandle = birtDesignEngine.newSessionHandle( ULocale.forLocale(locale)) ; ReportDesignHandle report = null; IReportRunnable design; IRunAndRenderTask task = null; try { design = birtReportEngine.openReportDesign(report); task = birtReportEngine.createRunAndRenderTask(design); task.setLocale(ULocale.forLocale(locale)); task.setAppContext(contextMap); task.run(); } catch (EngineException e) { } Is there any other encoding I need to specify ?
Can you upload the final HTML output it generated?
My report is now working fine, it was the issue of InputStream and InputReader , with old version of BIRT runtime even InputStream was working fine , but now when I changed the code to read the generated report through InputReader it is working fine. Thanks you all for helping me in solving this issue. -Rohan