Last active
November 24, 2017 19:40
-
-
Save caiofrota/9f6260124cd7d59ab8f5edf0df251721 to your computer and use it in GitHub Desktop.
Converting encoding with iconv command.
This file contains 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
#!/bin/bash | |
for file in `find . -regextype posix-egrep -regex ".*\.(html|jsp|jspx|java|properties|xml|sql|pck|fnc|trg)"`; do | |
iconv -f ISO-8859-1 -t UTF-8 $file > $file.utf-8; | |
mv $file.utf-8 $file; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment