We have a file naming convention in our CVS project to complete the file name with .utf8.txt for text files using UTF-8 encoding. The problem is that I have to manually tell Eclipse the encoding of the file every time I create one of these files, by right-clicking the file, selecting "Properties", and then changing the encoding from the drop-down list. Now I have a project in which I often need to add and delete these files, and it gets really painful to do it manually. I would like to be able to specify somewhere once and for all that files with a name ending in .utf8.txt should use UTF-8 encoding.
I noticed that when changing preferences, Eclipse modifies the org.eclipse.core.resources.prefs settings file to add the following line:
encoding/file.utf8.txt=UTF-8
So, naturally, the first thing I tried was to use the asterisk wildcard. However, none of them worked:
encoding/*.utf8.txt=UTF-8
encoding/**.utf8.txt=UTF-8
I want Eclipse to even be possible? Also, is the org.eclipse.core.resources.prefs file format somewhere documented?
source share