Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Accents(cant the generated files have accents?)
[Acceleo] Accents [message #1001257] Wed, 16 January 2013 05:32 Go to next message
Federico Toledo is currently offline Federico Toledo
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
I am trying to create a java file from an Acceleo script, with a line like this

test.click("link=Gestión de Usuarios");

but the generated file results

test.click("link=Gesti�n de Usuarios");



I'm using UTF-8

[file (aClass.classJavaFilePath(), false, 'UTF-8')]

shouldnt it work?
thank you in advance for any clue
Re: [Acceleo] Accents [message #1001262 is a reply to message #1001257] Wed, 16 January 2013 05:41 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4003
Registered: July 2009
Senior Member
Hi

Make sure you set all files to UTF-8. This is most easily done by
setting UTF-8 on the entire project.

Regards

Ed Willink

On 16/01/2013 10:32, Federico Toledo wrote:
> I am trying to create a java file from an Acceleo script, with a line
> like this
>
> test.click("link=Gestión de Usuarios");
>
> but the generated file results
> test.click("link=Gesti�n de Usuarios");
>
>
>
> I'm using UTF-8
>
> [file (aClass.classJavaFilePath(), false, 'UTF-8')]
>
> shouldnt it work?
> thank you in advance for any clue
Re: [Acceleo] Accents [message #1001265 is a reply to message #1001262] Wed, 16 January 2013 05:51 Go to previous message
Federico Toledo is currently offline Federico Toledo
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
Thank you Ed!

I've also found this
http://forge.ow2.org/tracker/index.php?func=detail&aid=314775&group_id=273&atid=350389

as a workaround they suggest to set UTF-8 in eclipse.ini
but just in case it affects other things... I'll follow your suggestion

bye!
Previous Topic:[Acceleo] Newbie Question XMI
Next Topic:[Acceleo] How to get the TargetFolder from script
Goto Forum:
  


Current Time: Wed Jul 23 04:04:39 EDT 2014

Powered by FUDForum. Page generated in 0.01772 seconds