Community
Participate
Working Groups
If you set a project specific encoding for a PDT project this setting is not remembered if you close the project, restart Eclipse and re-open the project. E.g. I have set my workspace encoding to UTF-8, but to ISO-8859-1 for some older projects. This can be solved by editing .settings/org.eclipse.php.core.prefs manually and adding the encoding line: encoding/<project>=ISO-8859-1 It also works for project types other than "PHP project", so to me it looks like PDT does not persist the settings correctly. I am using the Eclipse Helios for PHP Developers release.
After I closed all the DLTK and PDT plugins in my workspace, and run the Eclipse Application, I also can reproduce this bug. Maybe this is not a bug of PDT
I can see this on both PDT and generic project. I haven't seen line "encoding/<project>=..." added to org.eclipse.php.core.prefs. Xu can you reassign this bug to Eclipse/Platform/Resources component? Thanks.
I downloaded a fresh Eclipse from eclipse.org. And I found everything works well on a JAVA project. So does this mean there are still some bugs in some plugins. But I am not sure in which plugins. How should we treat this bug?
Upon further looking into it adding the encoding to org.eclipse.php.core.prefs is just a work-around. Eclipse normally seems to add it to org.eclipse.core.resources.prefs, but sometimes stores the wrong value there. Adding it to org.eclipse.php.core.prefs seems to overwrite the value in org.eclipse.core.resources.prefs. I am not sure to which component this bug belongs :( I will test this again with other project types.
Thanks for trying Philipp. Xu, you're right. I used plain Eclipse-SDK 3.6.1 and created generic project and java project. Changed encodings to ISO-8859-1, closed, restared Eclipse and reopened projects. Encodings are preserved. Next I installed PDT from Helios repo, created php project, changed it's encoding to ISO-8859-1, closed, resterted eclipse and reopened project. Encoding is preserved. Xu could you try to narrow down, when exactly is this happening? Maybe this is indeed caused by some other plugin, or maybe some problem with storing preferences during shutdown.
Jacek, I made some tries just now. 1. create project 2. change encoding 3. close project 4. restart pdt 5. open project // you will find the encoding reverted. 6. restart pdt 7. recheck the encoding, the encoding is set correctly. Next I will try to narrow down
why I could not reproduce this bug? test on: Version: 3.6.1 Build id: M20100909-0800 and latest pdt head
duplicate of Bug 202384
thanks,so I mark this bug fixed
Verified.