Created
December 21, 2014 18:52
-
-
Save imerr/8e4db2d20acbdd51a6c2 to your computer and use it in GitHub Desktop.
Mass convert files to utf8
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 . -name '*.py' -exec mv "{}" "{}.old" \; -exec sh -c 'iconv -f windows-1252 -t utf-8 "{}.old" > "{}"' \; -exec rm "{}.old" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment