Skip to content

Instantly share code, notes, and snippets.

@carlosipe
Created April 24, 2013 04:02
Show Gist options
  • Save carlosipe/5449534 to your computer and use it in GitHub Desktop.
Save carlosipe/5449534 to your computer and use it in GitHub Desktop.
convert to utf8
for i in `find . -name "*.php"`; do iconv -f utf8 -t utf8 $i 2>&1 > /dev/null | perl -e "while(<>){print \"$i\\n\"}";done
for i in `cat convertir`; do cp $i tmp; iconv -f iso-8859-1 -t utf8 tmp > $i;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment