How to find the character encoding type of a file in Linux?
Posted on 2011-03-21
I have a .txt file and I need to determine what character encoding it is using so I can then convert other files to match it.
If I run "file myfile.txt", I get this info:
"Non-ISO extended-ASCII text, with very long lines"
I know the file is ANSI but I need to determine exactly what type of ANSI file so I can convert other files to match it.
When I check the filetypes available in "iconv", I find these possibilities. How do I determine which one is the exact match?