Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Unicode Characters in ETL Strings
Unicode Characters in ETL Strings [message #549291] Mon, 26 July 2010 11:40 Go to next message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
Hi,

I wish to create a string in my target model that uses characters from the Unicode character set. In the ETL source I write,

pcInv.predicate := pcVar.name + " ∈ " + pcSet.name;

Currently the string that is output by my ETL translation does not correctly contain the Unicode character.

However, I also use Unicode characters in my source model, and they do get translated correctly (in this case they are just copies of the source) .

Any idea how to write Unicode in ETL strings so that they translate to Unicode in the target model?

Andy
Re: Unicode Characters in ETL Strings [message #549296 is a reply to message #549291] Mon, 26 July 2010 12:02 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Andy,

We'll need to investigate this. Could you please file a bug report using
the link below and attach a minimal example that reproduces this?

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=GMT& component=Epsilon

Cheers,
Dimitris

Andy wrote:
> Hi,
>
> I wish to create a string in my target model that uses characters from
> the Unicode character set. In the ETL source I write,
>
> pcInv.predicate := pcVar.name + " ∈ " + pcSet.name;
>
> Currently the string that is output by my ETL translation does not
> correctly contain the Unicode character.
>
> However, I also use Unicode characters in my source model, and they do
> get translated correctly (in this case they are just copies of the
> source) .
>
> Any idea how to write Unicode in ETL strings so that they translate to
> Unicode in the target model?
>
> Andy
Re: Unicode Characters in ETL Strings [message #549431 is a reply to message #549296] Mon, 26 July 2010 15:39 Go to previous messageGo to next message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
Dimitris,

unfortunately I've been unable to reproduce the error in a simple example. The translation is correct in the small examples I tried. Our project is a good deal more complex, and difficult to simplify, particularly since it references a number of source metamodels.

What I can say though, is that it appears that the 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

I can go ahead and write a bug report, but it might be difficult to provide a simple example.

cheers, Andy

Re: Unicode Characters in ETL Strings [message #550197 is a reply to message #549291] Thu, 29 July 2010 14:00 Go to previous messageGo to next message
Colin Snook is currently offline Colin SnookFriend
Messages: 18
Registered: July 2009
Location: University of Southampton
Junior Member
Hi,
I also need to construct unicode maths in ETL. For example e ∈ S requires the memberof symbol. In Java I would write this using the escape code \ and unicode character number u2208 i.e.
var predicate = "e \u2208 S

However, it seems ETL cannot parse correctly with escape characters in strings. It gives me incorrect error messages as soon as I put \ in a string.

I also tried using the character directly but this does not work either.

Colin
Re: Unicode Characters in ETL Strings [message #550491 is a reply to message #550197] Fri, 30 July 2010 14:14 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Colin,

Thanks for your reply. I'll have a look at this as soon as possible -
which might be a bit later than usual as I'm currently on holiday. Is
this a show-stopper for your work with ETL?

Cheers,
Dimitris

On 29/07/2010 17:00, Colin Snook wrote:
> Hi,
> I also need to construct unicode maths in ETL. For example e ∈ S
> requires the memberof symbol. In Java I would write this using the
> escape code \ and unicode character number u2208 i.e.
> var predicate = "e \u2208 S
>
> However, it seems ETL cannot parse correctly with escape characters in
> strings. It gives me incorrect error messages as soon as I put \ in a
> string.
>
> I also tried using the character directly but this does not work either.
>
> Colin
Re: Unicode Characters in ETL Strings [message #590939 is a reply to message #549296] Mon, 26 July 2010 15:39 Go to previous message
Andy Ed is currently offline Andy EdFriend
Messages: 64
Registered: December 2009
Member
Dimitris,

unfortunately I've been unable to reproduce the error in a simple example. The translation is correct in the small examples I tried. Our project is a good deal more complex, and difficult to simplify, particularly since it references a number of source metamodels.

What I can say though, is that it appears that the character, ∈ , in the fragment

Controller_pc ∈ Controller_pc_Set

is being encoded as,

Controller_pc
Previous Topic:metamodel EOL
Next Topic:[EVL] Question about the HasName constraint in the filesystemExample.
Goto Forum:
  


Current Time: Thu Mar 28 11:56:48 GMT 2024

Powered by FUDForum. Page generated in 0.03001 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top