Encoding per folder
Submitted by Friday, 22 June, 2007 - 09:29
on
Is it possible to set specific encoding per page?
I am working on more than one project at a time and some of them are utf-8 some are windows-1251. I have set up utf-8 as my default encoding, but when i open one of the other projects that uses windows-1251 i have to change the encoding to windows-1251 and then close(without saving) and reopen the file for the encoding to take place(if i forget and save the file with the incorrect encoding all non ASCII characters are screwed).
I wonder if it is possible to set some associations 'folder - encoding' and when opening file jedit checks whether the file is in one of these directories and opens it with the specified for that folder encoding.
So is there such functionality or plugin for jedit?
If not i would like to make that a request. If i had any kind of java experience i would do a plugin myself but i don't - i will have to learn java and jedit plugin architecture, while someone with experience in jedit plugin development will probably be able to do it in an hour.
Thank you
I am working on more than one project at a time and some of them are utf-8 some are windows-1251. I have set up utf-8 as my default encoding, but when i open one of the other projects that uses windows-1251 i have to change the encoding to windows-1251 and then close(without saving) and reopen the file for the encoding to take place(if i forget and save the file with the incorrect encoding all non ASCII characters are screwed).
I wonder if it is possible to set some associations 'folder - encoding' and when opening file jedit checks whether the file is in one of these directories and opens it with the specified for that folder encoding.
So is there such functionality or plugin for jedit?
If not i would like to make that a request. If i had any kind of java experience i would do a plugin myself but i don't - i will have to learn java and jedit plugin architecture, while someone with experience in jedit plugin development will probably be able to do it in an hour.
Thank you