Get Encoding of a file in Eclipse [message #890004] |
Wed, 20 June 2012 10:28  |
Eclipse User |
|
|
|
I may be missing something here, but I cannot find a place in Eclipse that tells me the encoding of a file that is currently open. I am opening a UTF-8 encoded file, but nowhere am I seeing this confirmed.
In editors such as Notepad++ and EditPlus, it possible to see this information.
The closest I've come in Eclipse is with a plugin called File Encoding Info 1.1.2, which, by its own admission, "will try to detect the encoding of the current editing text file". Unfortunately, it is not very successful in my case. It is 34% confident that the file is ISO-8859-1, and only 10% confident that it is UTF-8.
Ideally, I would need Eclipse to detect the encoding of a file when I open it and keep it as such when I save it.
Can anyone help?
|
|
|
|
|
|
Re: Get Encoding of a file in Eclipse [message #890259 is a reply to message #890190] |
Thu, 21 June 2012 12:02   |
Eclipse User |
|
|
|
Well, there is, but only for the file types that have a way of declaring their encoding in the file itself, e.g. XML, HTML, JSP, DTD, and CSS files--if you have the right plug-ins installed. For most file types, though, it is as Dani said.
|
|
|
|
Powered by
FUDForum. Page generated in 0.08856 seconds