Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Enforce default encoding - how to do it?
Enforce default encoding - how to do it? [message #16603] Sun, 22 April 2007 03:01 Go to next message
Eclipse UserFriend
Originally posted by: no.spam.thanks.com

Hello everyone,

I had Eclipse configured to use UTF-8 as the default text file encoding on
my workspace. At that time, I created a PHP project which I'm working on -
I'm mentioning this because I'm not sure if it's a project's setting.

All my PHP files were being saved as UTF-8, which is not what I wanted. So
when I noticed it I configured ISO-8859-1 as the default text file encoding,
but when I create a new PHP file it's still UTF-8 and I have to manually
change the text file encoding on the file properties. That only happens with
..php files, the others files such as .js, .css and .html are being created
fine as ISO-8859-1.

So my question is: how do I configure it to use always the Eclipse default
text file encoding?

Francisco
Re: Enforce default encoding - how to do it? [message #16620 is a reply to message #16603] Mon, 23 April 2007 04:46 Go to previous messageGo to next message
Eclipse UserFriend
Francisco Lopes schrieb:
> Hello everyone,
>
> I had Eclipse configured to use UTF-8 as the default text file encoding on
> my workspace. At that time, I created a PHP project which I'm working on -
> I'm mentioning this because I'm not sure if it's a project's setting.
>
> All my PHP files were being saved as UTF-8, which is not what I wanted. So
> when I noticed it I configured ISO-8859-1 as the default text file encoding,
> but when I create a new PHP file it's still UTF-8 and I have to manually
> change the text file encoding on the file properties. That only happens with
> .php files, the others files such as .js, .css and .html are being created
> fine as ISO-8859-1.
>
> So my question is: how do I configure it to use always the Eclipse default
> text file encoding?
>
> Francisco
>
>


Hi Francisco,

take a look at this BugReport:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=174300

The Comments may clearify a bit.
Re: Enforce default encoding - how to do it? [message #16688 is a reply to message #16620] Tue, 24 April 2007 15:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: no.spam.thanks.com

Christian,

I didn't know it was a bug, thanks. :)

I guess we should cross-fingers and wait then...

Francisco


"Christian M
Re: Enforce default encoding - how to do it? [message #16702 is a reply to message #16688] Tue, 24 April 2007 18:20 Go to previous messageGo to next message
Eclipse UserFriend
Francisco Lopes schrieb:
> Christian,
>
> I didn't know it was a bug, thanks. :)
Perhaps it's intented bahaviour ... but to me it's a plain bug (since
PDT renders me unable to do a simple thing, wich i could do before ^^)
>
> I guess we should cross-fingers and wait then...
Will do ^^

>
> Francisco
>
Re: Enforce default encoding - how to do it? [message #17495 is a reply to message #16603] Wed, 25 April 2007 07:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi Francisco,
I was affected by this issue too. I've forced Eclipse to use ISO-8859-1
by changing the "Default encoding" setting under "General->Content
Types; Text->PHP Content Type".
I hope that this helps you.

Alejandro

Francisco Lopes escribió:
> Hello everyone,
>
> I had Eclipse configured to use UTF-8 as the default text file encoding on
> my workspace. At that time, I created a PHP project which I'm working on -
> I'm mentioning this because I'm not sure if it's a project's setting.
>
> All my PHP files were being saved as UTF-8, which is not what I wanted. So
> when I noticed it I configured ISO-8859-1 as the default text file encoding,
> but when I create a new PHP file it's still UTF-8 and I have to manually
> change the text file encoding on the file properties. That only happens with
> .php files, the others files such as .js, .css and .html are being created
> fine as ISO-8859-1.
>
> So my question is: how do I configure it to use always the Eclipse default
> text file encoding?
>
> Francisco
>
>
Re: Enforce default encoding - how to do it? [message #17557 is a reply to message #16702] Thu, 26 April 2007 20:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pavel.dvorak.work.gmail.com

I have similar problem. I want to set up default enoding as utf and
project encoding to windows-1250. I have set project encoding to
windows-1250 and nothing changes. Project files still open as utf. what
can i do?
Re: Enforce default encoding - how to do it? [message #17595 is a reply to message #17557] Fri, 27 April 2007 04:58 Go to previous messageGo to next message
Eclipse UserFriend
pavel.dvorak.work@gmail.com schrieb:
> I have similar problem. I want to set up default enoding as utf and
> project encoding to windows-1250. I have set project encoding to
> windows-1250 and nothing changes. Project files still open as utf. what
> can i do?

As of now: Nothing except changing every single file manually.

An other Comment stated, that you might be able to ovverride the
"Content-Type-Enconding" by having subclipse-plugin active(?) on your
project and set the project's encoding through this.
But i didn't test it yet.
Re: Enforce default encoding - how to do it? [message #17608 is a reply to message #17595] Fri, 27 April 2007 05:53 Go to previous message
Eclipse UserFriend
Originally posted by: pavel.dvorak.work.gmail.com

Christian Müller napsal(a):
> pavel.dvorak.work@gmail.com schrieb:
>> I have similar problem. I want to set up default enoding as utf and
>> project encoding to windows-1250. I have set project encoding to
>> windows-1250 and nothing changes. Project files still open as utf.
>> what can i do?
>
> As of now: Nothing except changing every single file manually.
>
> An other Comment stated, that you might be able to ovverride the
> "Content-Type-Enconding" by having subclipse-plugin active(?) on your
> project and set the project's encoding through this.
> But i didn't test it yet.
can you explain how? i don't understand how to set it using subclipse
Previous Topic:Xdebug support for PDT 0.7 RC3
Next Topic:File -> New -> PHP [?]
Goto Forum:
  


Current Time: Wed May 14 12:33:06 EDT 2025

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

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

Back to the top