I'm filtering files.
I'm looking for a way to detect if a file is simple text based(not encoded).
Of course I could define all the extensions, but is there a quick way to see if file is simple text(for e.g.: *.php) or encoded (for e.g.: *.exe) ?
Thanks in advance!