Created
February 27, 2014 15:26
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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