Can I get the encoding of a text file?



Is there a way to determine the encoding of a text file (like is it UTF-8 or something else?). I've been fishing around and can't find anything but it seems like something that should be in there somewhere. Thanks!
.