Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312037 - Getting extra junk character in TextInput while putting  
Summary: Getting extra junk character in TextInput while putting  
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.5.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-07 06:30 EDT by Rohan CLA
Modified: 2010-05-20 13:41 EDT (History)
2 users (show)

See Also:


Attachments
Report run ouput with the issue (125.50 KB, image/jpeg)
2010-05-10 07:47 EDT, Rohan CLA
no flags Details
RPT design file with the issue (24.91 KB, application/octet-stream)
2010-05-10 07:47 EDT, Rohan CLA
no flags Details
Updated rpt design file with no java code (23.11 KB, application/octet-stream)
2010-05-11 06:59 EDT, Rohan CLA
no flags Details

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