|Re: Eclipse converts ascii to utf-8 without warning [message #1270598 is a reply to message #1269929]
||Thu, 13 March 2014 07:41
| Toshihiro Izumi
Registered: July 2009
You need to set "ISO-8859-1" to the file->Properties->Resource->Text file encoding.|
Since it is a matter of Eclipse Platform, not PDT, I recommend to re-post the issue on more responsible forum Eclipse Community Forums: Newcomers or Eclipse Community Forums: Eclipse Platform.
Eclipse Platform doesn't care if a file contains invalid utf-8 characters, and they are converted into the replacement character(U+FFFD) automatically, as you know.
This behaviour can be controled by CharsetDecoder and CodingErrorAction. I'm not sure but current implementation of Eclipse Platform seems to be not having such way. (I'm seeing org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.setDocumentContent(IDocument, IFile, String))
So, it's better to request the function you want against Eclipse Platform team, IMO.
Powered by FUDForum
. Page generated in 0.04142 seconds