encoding of file shell script

Viewed 59402

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1.

Thanks

4 Answers
Related