Created
May 12, 2012 10:29
-
-
Save felixrabe/2665708 to your computer and use it in GitHub Desktop.
Recode Java files, ISO-8859-1 => UTF-8
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
find . -type f -name '*.java' | sort | while read fn ; do | |
echo "$fn" && | |
iconv -f ISO-8859-1 -t UTF-8 "$fn" -o "$fn.MOD" && | |
mv "$fn.MOD" "$fn" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment