Community
Participate
Working Groups
Build Identifier: 0.7 GA build 1) Setup the attached TestProject, and open the H1.egl. 2) You can find that the text in the H1 is not displayed correctly, while you open the W1, you can find that the text is displayed correctly. Reproducible: Always
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. ***