Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Xtend and Charset fun
Xtend and Charset fun [message #756452] Sun, 13 November 2011 09:20 Go to next message
Eclipse UserFriend
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 11:13 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Xtend and Charset fun [message #756462 is a reply to message #756457] Sun, 13 November 2011 12:02 Go to previous messageGo to next message
Eclipse UserFriend
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 12:38 Go to previous messageGo to next message
Eclipse UserFriend
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 12:51 Go to previous message
Eclipse UserFriend
As always: feel free to file an enhancement request. Regards Christian
Previous Topic:Mapping to JVM Concepts
Next Topic:Whitespace problem in comma separated list
Goto Forum:
  


Current Time: Sat Jul 05 22:57:38 EDT 2025

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

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

Back to the top