Check character encoding of file
11 March 2022 (Updated 11 March 2022)
file --mime <file>
Example output:
hello.txt: text/plain; charset=us-ascii
Tagged:
Unix
file --mime <file>
Example output:
hello.txt: text/plain; charset=us-ascii