Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320992 - Incorrect translation of Unicode UTF-8 character when Using ETL
Summary: Incorrect translation of Unicode UTF-8 character when Using ETL
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-27 07:01 EDT by Andy Ed CLA
Modified: 2012-02-06 10:59 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Ed CLA 2010-07-27 07:01:28 EDT
Incorrect translation of Unicode UTF-8 character when Using ETL.

The Unicode character '∈' in the fragment,

Controller_pc ∈ Controller_pc_Set

is being encoded as,

Controller_pc ∈ Controller_pc_Set

instead of

Controller_pc 	∈ 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.