| Summary: | Error encoding when using the widgets includes double character text | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | fahua jin <jinfahua> | ||||||
| Component: | EDT | Assignee: | Project Inbox <edt.compiler-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | hjiyong, ngereci, pfyu, pharmon, svihovec | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
fahua jin
Created attachment 208817 [details]
The sample project.
The text file encoding is GBK, which is the default char setting of my system. Created attachment 208839 [details]
New test case
Hi Paul, I think the generated IR is wrong for the string of unicode charactors. I attach a new test case. To reproduce the problem, please follow the steps 1. Import the new test project. Set the encoding of the project to UTF-8. There is a RUI handler h1.egl. In which a string leteral s is set to a chinese charater string 中国. 2. Clean the project. Open the generated IR file t367592/EGLBin/client/h1.eglxml. In line 44 <RHS ID="24" eClass="org.eclipse.edt.mof.egl.StringLiteral" value="??" isHex="false" > The string value is not correct. Please have a look. Thanks. The problem occurred because the encoding of the xml IR files was set to iso-8859-1. This encoding only supports SBCS characters. I have changed the code to set the encoding to UTF-8, which (in theory), supports all unicode characters. I have updated the following java files for this: AbstractObjectStore XMLSerializer additionally, i recompiled the system IRs and released the updated archives: edtcompiler.eglar egl.mofar Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4. *** Bug 369368 has been marked as a duplicate of this bug. *** |