Code improvement: Handling of file encoding
Brought to you by:
fabioz
I just took a deeper look into the pydev source code. I came across the way the PyEdit class handles the file encoding and that it tries to read it from the Python itself.
I thought that this is similar to how this is handled for XML files because the encoding is also specified in the file itself.
I found out that there is a standard "Eclipse way" of dealing with this and it is based on content describers (IContentDescriber). Maybe this might be a good improvement for PyEdit/pydev.
More info can be found here:
http://www.eclipse.org/eclipse/platform-core/documents/content_types.html
Logged In: YES
user_id=617340
Originator: NO
Changing to feature request