Skip to content

Instantly share code, notes, and snippets.

@winterbe
Created January 3, 2012 15:16
Show Gist options
  • Save winterbe/1555302 to your computer and use it in GitHub Desktop.
Save winterbe/1555302 to your computer and use it in GitHub Desktop.
Convert all Java file encodings from windows1250 to UTF-8
for i in `find . -type f -name "*.java" -print`;
do
iconv -f CP1250 -t UTF-8 $i > $i.new;
mv -f $i.new $i;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment