Skip to content

Instantly share code, notes, and snippets.

@Xuhao
Created January 9, 2012 03:42
Show Gist options
  • Save Xuhao/1580934 to your computer and use it in GitHub Desktop.
Save Xuhao/1580934 to your computer and use it in GitHub Desktop.
Add "# encoding: utf-8" for each files
# find app/controllers/ -name "*" -print | xargs -i sed -i '1i\# encoding: utf-8' {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment