cypher256 / eclipse-encoding-plugin

Show file encoding and line ending for the active editor in the eclipse status bar. Encoding can be changed by right click. Line ending support showing CRLF, CR, LF and Mixed.
https://marketplace.eclipse.org/content/autodetect-encoding
Eclipse Public License 1.0
47 stars 8 forks source link

Does not correctly detect latin-1 (when default encoding is utf-8) #7

Closed tomtom closed 3 years ago

tomtom commented 7 years ago

It's probably because of juniversalchardet, but this plugin doen't correctly distinguish between utf-8 and latin-1, which led to the corruption of several files. I get no warning or whatever. The original File Encoding Info, which uses ICU, works more reliably in this context and correctly displays a warning.

Maybe you could revise the use of juniversalchardet or support multiple detection libraries?

cypher256 commented 3 years ago

In version 1.8.4, the switching feature between juniversalchardet and ICU4J has been added, so it will be closed.