Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Question marks in text file generated by Xtend
Question marks in text file generated by Xtend [message #1402901] Fri, 18 July 2014 09:35 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,

does anybody has an idea about why this Xtend template:

https://github.com/Guite/MostGenerator/blob/master/org.zikula.modulestudio.generator/src/
org/zikula/modulestudio/generator/cartridges/zclassic/smallstuff/documents/DeveloperHints.xtend

causes an output like shown in this issue:

https://github.com/Guite/MostGenerator/issues/610


The Xtend file has UTF-8 as encoding.

Maybe this could be related to the output having a wrong encoding?
https://github.com/Guite/MostGenerator/issues/329

But there are no special chars replaced by question marks. Instead the
question marks seem to be added to the output.

Thanks for your help,

Axel
Re: Question marks in text file generated by Xtend [message #1402907 is a reply to message #1402901] Fri, 18 July 2014 09:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
the template actually contains a lots of "C2 AD" which are soft hyphens.
of course you should tell the JavaIoFileSystemAccess via IEncodingProvider to write the files as UTF-8 as well.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Question marks in text file generated by Xtend [message #1402915 is a reply to message #1402907] Fri, 18 July 2014 10:44 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi Christian,

thanks for your fast reply.

How did you find out the soft hyphens (i.e. which tool did you use to check
the Xtend file)?

Axel


Christian Dietrich wrote:

> the template actually contains a lots of "C2 AD" which are soft hyphens.
> of course you should tell the JavaIoFileSystemAccess via IEncodingProvider
> to write the files as UTF-8 as well.
Re: Question marks in text file generated by Xtend [message #1402916 is a reply to message #1402915] Fri, 18 July 2014 10:48 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
HI,

i used a hex editor for that (in my case a plugin for sublime text)


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to launch the XTend compilation after having generating Xtend code?
Next Topic:Right place to load properties from file and retrieve them
Goto Forum:
  


Current Time: Fri Apr 19 11:10:43 GMT 2024

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

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

Back to the top