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

Bug 320992

Summary: Incorrect translation of Unicode UTF-8 character when Using ETL
Product: [Modeling] Epsilon Reporter: Andy Ed <ae2>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Andy Ed CLA 2010-07-27 07:01:28 EDT
Incorrect translation of Unicode UTF-8 character when Using ETL.

The Unicode character '&#8712;' in the fragment,

Controller_pc &#8712; Controller_pc_Set

is being encoded as,

Controller_pc &#xe2;&#x2c6;&#x2c6; Controller_pc_Set

instead of

Controller_pc &#x9;&#x2208; Controller_pc_Set
Comment 1 Dimitris Kolovos CLA 2010-09-20 05:35:37 EDT
I've been cleaning up some old bugs and noticed that this one seems to have fallen through the cracks. I'm really sorry about that. Have you perhaps found a workaround for this already? It'd be great if you could let me know what the situation is so that I can prioritise this accordingly.
Comment 2 Dimitris Kolovos CLA 2010-11-09 15:23:53 EST
The following operation can be used to create Unicode characters:

operation String toUnicode() {
  var unicode = Native("java.lang.Integer").parseInt(self, 16);
  var chars = Native("java.lang.Character").toChars(unicode);
  return Native("java.util.Arrays").toString(chars).substring(1,2);
}
Comment 3 Dimitris Kolovos CLA 2010-11-25 08:21:39 EST
Fixed in 0.9.0.