Get File Encoding

Simple shell command to guess the encoding of a text file.

file -I <file path>

returns something like <file path>: text/plain; charset=iso-8859-1

Technologies: