How to know the encoding of a file (OS X 10.9.5)

Some OS X apps like Textedit do store the file encoding of the files as an attribute named: “com.apple.TextEncoding“. Find out if the file has attributes defined First we open the terminal and go where our file is located. Once we are in the right folder use the ls command: You may see something like this: Pay attention to the …