Last Updated: February 25, 2016
·
559
· julienhuon

Batch convert PHP latin-1 files to utf-8 using iconv on Mac OS X

find . -name "*.php" -exec bash -c 'iconv -f iso-8859-1 -t utf-8 "{}" > ../newdir-utf8/"{}"' \;