Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse default encoding of files
Eclipse default encoding of files [message #290848] Fri, 02 September 2005 06:11 Go to next message
jan_bar is currently offline jan_barFriend
Messages: 38
Registered: July 2009
Member
Hi,

I don't understand how the default encoding is supposed to work. I have
project and on the project I set Properties/Text file encoding to UTF-8. Now
I create new text file in this project and when I look at the properties of
the file, it says "Default (determined from content: Cp1250)". Well, the
file is empty. How can I persuade Eclipse to use UTF-8 on new files?
(Similar problems exists when the file already exists)

Jan
Re: Eclipse default encoding of files [message #290862 is a reply to message #290848] Fri, 02 September 2005 11:06 Go to previous messageGo to next message
jan_bar is currently offline jan_barFriend
Messages: 38
Registered: July 2009
Member
Seems that -Dfile.encoding=UTF-8 in Eclipse.ini solves all the troubles.

Jan

"Jan Bares" <herkule9s@yahoo.com> wrote in message
news:df8qfm$ij2$1@news.eclipse.org...
> Hi,
>
> I don't understand how the default encoding is supposed to work. I have
> project and on the project I set Properties/Text file encoding to UTF-8.
Now
> I create new text file in this project and when I look at the properties
of
> the file, it says "Default (determined from content: Cp1250)". Well, the
> file is empty. How can I persuade Eclipse to use UTF-8 on new files?
> (Similar problems exists when the file already exists)
>
> Jan
>
>
Re: Eclipse default encoding of files [message #290891 is a reply to message #290862] Fri, 02 September 2005 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

You might like to vote for this as a bug in Eclipse, to make the default UTF-8. After all, Eclipse is a cross-platform product, and I believe that it should create cross-platform files by default:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=108668
Re: Eclipse default encoding of files [message #291021 is a reply to message #290848] Tue, 06 September 2005 13:09 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Jan Bares wrote:

>Hi,
>
>I don't understand how the default encoding is supposed to work. I have
>project and on the project I set Properties/Text file encoding to UTF-8. Now
>I create new text file in this project and when I look at the properties of
>the file, it says "Default (determined from content: Cp1250)". Well, the
>file is empty. How can I persuade Eclipse to use UTF-8 on new files?
>(Similar problems exists when the file already exists)
>
>
This would be a bug which I cannot reproduce using R3.1 or newer. Please
file a bug with steps to reproduce against Platform Text. Note that some
content types (e.g. XML and properties files) define their own defaults
which override those from the project/workspace.

Dani

>Jan
>
>
>
>
Previous Topic:Encoding
Next Topic:description.setName() necessary to create a new project?
Goto Forum:
  


Current Time: Tue Apr 23 09:56:36 GMT 2024

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

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

Back to the top