Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save githubutilities/1b685047dbcba765bfbc to your computer and use it in GitHub Desktop.

Select an option

Save githubutilities/1b685047dbcba765bfbc to your computer and use it in GitHub Desktop.
Convert GB Encoding
#! /bin/sh
for file in `find . -name "*.java"`; do
iconv --from-code GB2312 --to-code UTF-8 "$file" > "$file.new" &&
mv "$file.new" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment