wikiti
4/25/2017 - 2:55 PM

Detect file encoding

Detect file encoding

# Usage
file -i <file>

# Example
file -i utf8.txt
# utf8.txt: text/plain; charset=utf-8