Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtend and Charset fun
Xtend and Charset fun [message #756452] Sun, 13 November 2011 14:20 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I've been hit by a charset problem when working with different
development envs:
* Win32
* Mac OS X

The problem is that xtend uses the french quotes which cause problems
because when one creates a file on Win32 the charset is CP1252 and on
Mac one gets a default encoding MacRoman.

I currently have no suggestion how to overcome the problem people won't
run into when using Java normally (unless one has inlined messages with
high bit charsets) but maybe issuing a warning and or creating
xtend-Files always e.g. using ISO-8859-1.

Tom
Re: Xtend and Charset fun [message #756457 is a reply to message #756452] Sun, 13 November 2011 16:13 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
hi tom, i think it is generally a good idea to change the workspace encoding to utf-8 or iso-8859-1 if you do multi platform development. ~Christian

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtend and Charset fun [message #756462 is a reply to message #756457] Sun, 13 November 2011 17:02 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
On 11/13/11 5:13 PM, Christian Dietrich wrote:
> hi tom, i think it is generally a good idea to change the workspace
> encoding to utf-8 or iso-8859-1 if you do multi platform development.
> ~Christian

And, it is an also a good idea to have encoding as a project specific
setting and checking it in.

- henrik
Re: Xtend and Charset fun [message #756700 is a reply to message #756462] Mon, 14 November 2011 17:38 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

My suggestion would be that the project wizards for Xtext by default set
a better encoding (ideally I think would be UTF-8 maybe providing a
dropdown in the project-creation wizard which defaults to UTF-8?)
because the likeliness of such charset conversion problems is much
higher in xtend-Code because of french code usage.

Tom

Am 13.11.11 18:02, schrieb Henrik Lindberg:
> On 11/13/11 5:13 PM, Christian Dietrich wrote:
>> hi tom, i think it is generally a good idea to change the workspace
>> encoding to utf-8 or iso-8859-1 if you do multi platform development.
>> ~Christian
>
> And, it is an also a good idea to have encoding as a project specific
> setting and checking it in.
>
> - henrik
Re: Xtend and Charset fun [message #756704 is a reply to message #756700] Mon, 14 November 2011 17:51 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14716
Registered: July 2009
Senior Member
As always: feel free to file an enhancement request. Regards Christian

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Mapping to JVM Concepts
Next Topic:Whitespace problem in comma separated list
Goto Forum:
  


Current Time: Thu Sep 19 15:41:11 GMT 2024

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

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

Back to the top