sajad torkamani
file <file>

Example output:

hello: Unicode text, UTF-8 text
Tagged: Unix