Skip to content

Instantly share code, notes, and snippets.

@felixrabe
Created May 12, 2012 10:29
Show Gist options
  • Save felixrabe/2665708 to your computer and use it in GitHub Desktop.
Save felixrabe/2665708 to your computer and use it in GitHub Desktop.
Recode Java files, ISO-8859-1 => UTF-8
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