Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » default encoding
default encoding [message #336402] Wed, 10 June 2009 04:14 Go to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
Hello,
I'm using Galileo RC3.
I want the default workspace encoding to be UTF-8. At the moment, each time
I create a new workspace I have to set the encoding to UTF-8 (I sometimes
forget and get punished). Any way of doing this?
Thanks,
Zohar.
Re: default encoding [message #336412 is a reply to message #336402] Wed, 10 June 2009 08:11 Go to previous messageGo to next message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
zohar wrote:
> Hello,
> I'm using Galileo RC3.
> I want the default workspace encoding to be UTF-8. At the moment, each
> time I create a new workspace I have to set the encoding to UTF-8 (I
> sometimes forget and get punished). Any way of doing this?
If you have your projects in a repository then the best way is to set
the encoding on the project and hence share it.

To make sure you don't forget to the workspace setting you could use a
start script that sets the file.encoding property.

Dani
> Thanks,
> Zohar.
>
>
Re: default encoding [message #336430 is a reply to message #336412] Thu, 11 June 2009 06:45 Go to previous messageGo to next message
Zohar Amir is currently offline Zohar Amir
Messages: 419
Registered: July 2009
Senior Member
1. how do I save this setting for the project?
2. are there any command line args I can use to do that?

"Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
news:h0o7u8$es6$1@build.eclipse.org...
> zohar wrote:
>> Hello,
>> I'm using Galileo RC3.
>> I want the default workspace encoding to be UTF-8. At the moment, each
>> time I create a new workspace I have to set the encoding to UTF-8 (I
>> sometimes forget and get punished). Any way of doing this?
> If you have your projects in a repository then the best way is to set the
> encoding on the project and hence share it.
>
> To make sure you don't forget to the workspace setting you could use a
> start script that sets the file.encoding property.
>
> Dani
>> Thanks,
>> Zohar.
>>
>>
Re: default encoding [message #336433 is a reply to message #336430] Thu, 11 June 2009 08:05 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
zohar wrote:
> 1. how do I save this setting for the project?
If your project is shared with a team provider (e.g. CVS) then you will
see a change after setting the project encoding. Simply commit that change.
> 2. are there any command line args I can use to do that?
-vmargs -Dfile.encoding=UTF-8

Dani
>
> "Daniel Megert" <daniel_megert@ch.ibm.com> wrote in message
> news:h0o7u8$es6$1@build.eclipse.org...
>> zohar wrote:
>>> Hello,
>>> I'm using Galileo RC3.
>>> I want the default workspace encoding to be UTF-8. At the moment,
>>> each time I create a new workspace I have to set the encoding to
>>> UTF-8 (I sometimes forget and get punished). Any way of doing this?
>> If you have your projects in a repository then the best way is to set
>> the encoding on the project and hence share it.
>>
>> To make sure you don't forget to the workspace setting you could use
>> a start script that sets the file.encoding property.
>>
>> Dani
>>> Thanks,
>>> Zohar.
>>>
>>>
Previous Topic:[Update Site] metadata
Next Topic:WizardResourceImportPage.createDestinationGroup is final?
Goto Forum:
  


Current Time: Tue Jul 29 23:05:02 EDT 2014

Powered by FUDForum. Page generated in 0.03105 seconds