Unicode Characters in ETL Strings [message #549291] |
Mon, 26 July 2010 07:40  |
Eclipse User |
|
|
|
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 11:39   |
Eclipse User |
|
|
|
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 #550491 is a reply to message #550197] |
Fri, 30 July 2010 10:14  |
Eclipse User |
|
|
|
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 11:39  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03620 seconds