If you’re using a Unix or Unix-like operating system you can leverage the GNU iconv library to validate the encoding of a file or files. Although, the GNU iconv library is actually meant to do file conversions, it can still be used in a way that will give you some understanding if the file(s) contain [...]