How can I test the encoding of a text file... Is it valid, and what is it?
77
votes
4
answers
207987
views
I have several
.htm
files which open in Gedit without any warning/error, but when I open these same files in Jedit
, it warns me of invalid UTF-8 encoding...
The HTML meta tag states "charset=ISO-8859-1". Jedit allows a *List of fallback encodings* and a *List of encoding auto-detectors* (currently "BOM XML-PI"), so my immediate problem has been resolved. But this got me thinking about: What if the meta data wasn't there?
When the encoding information is just not available, is there a CLI program which can make a "best-guess" of which encodings may apply?
And, although it is a slightly different issue; is there a CLI program which tests the validity of a *known* encoding?
Asked by Peter.O
(33644 rep)
Apr 19, 2011, 07:16 AM
Last activity: Oct 17, 2024, 08:43 PM
Last activity: Oct 17, 2024, 08:43 PM