Hi Antonio,
As stated by Ed, this is an encoding issue.
Basically, you are opening a file encoded in UTF8 with Cp1252 encoding (Eclipse windows default one)
You can check that by running this java code:
// Project>Properties>Resource>TextFileEncoding>Cp1252
System.out.println(new
String("«".getBytes(StandardCharsets.UTF_8)));
//display «
-
Can you precise witch project is problematic?
-
Did you used oomph to set up your environment?
-
On which level is maven build failing? Inside eclipse?
(Normally this configuration [1] should prevent that but maybe the configuration is overridden by your workspace preferences.)
Regards,
Benoit
1
: File org.eclipse.papyrus\releng\pom.xml L73 <encoding>UTF-8</encoding>
De : mdt-papyrus.dev-bounces@xxxxxxxxxxx [mailto:mdt-papyrus.dev-bounces@xxxxxxxxxxx]
De la part de Ed Willink
Envoyé : jeudi 24 novembre 2016 13:25
À : mdt-papyrus.dev@xxxxxxxxxxx
Objet : Re: [mdt-papyrus.dev] Character encoding issues in xtend files
Hi
You need to use UTF-8 consistently.
I strongly recommend setting UTF-8 (and Unix line endings) explicitly on every project that you care about. Optionally Workspace too, but workspaces are not shared via GIT, projects are.
Regards
Ed Willink
On 24/11/2016 12:11, Antonio Campesino Robles wrote:
Hi all,
I am experiencing some issues with some xtend files in a repo cloned in windows. It maybe my git config or something else related to the encoding in windows. Anyway, any help will be greatly appreciated. The issue is with the characters
‘«’ and ‘»’ where the ‘Â’ appears just before them, like:
«field.simpleName»
When opening the git compare editor, it fails and not able to open. But the main problem for me is that maven build fail due to that.
Again, any suggestion is appreciated.
/Antonio
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
![Avast logo]()
|
This email has been checked for viruses by Avast antivirus software.
www.avast.com
|