I have some UTF-8 HTML templates in my Eclipse project and Eclipse keeps treating them as if they had a different encoding. It says the encoding is "determined from content". I want to force the correct encoding.
I can force it for a single file but setting an encoding for the parent folder won't affect the files in it because instead of the "inherit" option in the property sheet there's the "determined from content" thing in it's place.
Is it possible to set the encoding for all files in a Project at once?
I've just solved this problem (eclipse 3.5.2)
Two steps required:
I've only seen "determined from content" for XML files. In that case it's the only correct setting, because XML files have their encoding defined in their header, so forcing anything else would be a grave mistake.
If you still want to do it, you could try to view the file .settings/org.eclipse.core.resources.prefs
in your project (that file may or may not exist dependin on wether you've manually set any encoding in the project or not).
This was caused by a development version of Eclipse. In the latest official release (3.5) it is fixed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With