Determine what character encoding is used by a file
file -bi [filename]
Example output:
$ file -bi test.txt
text/plain; charset=us-ascii
Fuente:
http://mindspill.net/computing/linux-notes/determine-and-change-file-character-encoding/
file -bi [filename]
Example output:
$ file -bi test.txt
text/plain; charset=us-ascii
Fuente:
http://mindspill.net/computing/linux-notes/determine-and-change-file-character-encoding/