perl

Perl – Detect non-ASCII characters in file

Solution

$ perl -ne 'if (/[^[:ascii:]]/) { print $. . ": " . $_ }' filepath