Determining the encoding of a file on Mac OS X?

Solution 1:

file -I {filename} worked from the link Ayaz provided. Apparently though, there is no definite way to determine the encoding.