Re: How to guess or check encoding of text file.
At 10:56 PM 1/5/2003 -0800, Osamu Aoki wrote:
Is there good utility to guess what encoding a test file is using? This
does not need to be generic but just for western language is fine.
file will do it. Running recode -s utf-8..utf-16 < file > /dev/null is fairly
accurate - if it looks like utf-8 it probably is. If you have a particular
language in mind, konwert will guess what encoding the file is in more
accurately, and can tell the difference between various 7 and 8-bit
David Starner - firstname.lastname@example.org
(email@example.com may be disappearing soon - firstname.lastname@example.org will work,
but is not suitable for high-volume traffic.)