Skip to content

Instantly share code, notes, and snippets.

@dtuite
Created February 27, 2014 15:26
Show Gist options
  • Save dtuite/9252257 to your computer and use it in GitHub Desktop.
Save dtuite/9252257 to your computer and use it in GitHub Desktop.
Find non-ASCII characters. This is useful when (for example) you have a Rails application and you want to specify UTF-8 encoding magic comment on files which need it. This snippet will tell you which files.
find . -type f -exec file --mime {} \; | grep -v us-asci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment