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

Bug 312037

Summary: Getting extra junk character in TextInput while putting  
Product: z_Archived Reporter: Rohan <rohan_kayan>
Component: BIRTAssignee: Birt-ReportEngine-inbox <Birt-ReportEngine-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: hustlg, wyan
Version: 2.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Report run ouput with the issue
none
RPT design file with the issue
none
Updated rpt design file with no java code none

Description Rohan CLA 2010-05-07 06:30:18 EDT
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 &nbsp; in the TextInput.
Comment 1 Wei Yan CLA 2010-05-09 20:43:05 EDT
can you attach the sample reports?
Comment 2 Rohan CLA 2010-05-10 07:47:18 EDT
Created attachment 167690 [details]
Report run ouput with the issue
Comment 3 Rohan CLA 2010-05-10 07:47:54 EDT
Created attachment 167691 [details]
RPT design file with the issue
Comment 4 Rohan CLA 2010-05-10 07:48:41 EDT
I have uploaded the rptdesign file and the screenshot of the issue
Comment 5 Gang Liu CLA 2010-05-11 05:27:38 EDT
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
Comment 6 Rohan CLA 2010-05-11 06:59:54 EDT
Created attachment 167892 [details]
Updated rpt design file with no java code

Updated rpt design file with no java code
Comment 7 Wei Yan CLA 2010-05-11 23:50:12 EDT
can't reproduce it. Is it your browser's character encoding issue? It should be UTF-8.
Comment 8 Rohan CLA 2010-05-18 00:36:06 EDT
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 ?
Comment 9 Wei Yan CLA 2010-05-18 02:35:44 EDT
Can you upload the final HTML output it generated?
Comment 10 Rohan CLA 2010-05-20 13:41:32 EDT
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