Skip to content

Instantly share code, notes, and snippets.

@aeurielesn
Created October 11, 2011 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aeurielesn/1278767 to your computer and use it in GitHub Desktop.
Save aeurielesn/1278767 to your computer and use it in GitHub Desktop.
Change files encoding from ANSI to UTF-8
for file in $(find . -name *.java -type f)
do
iconv -f cp1252 -t utf-8 -o "$file.new" "$file" && mv -f "$file.new" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment