Batch convert files using iconv
Converting file from KOI8-R to utf-8:
#iconv -f KOI8-R -t utf-8 originalfile > newfile
You can change KOIR-8 and utf-8 to yours.
Batch converting files from folder:
#mkdir new; for a in $(find . -name "*.php"); do iconv -f KOI8-R -t utf-8 <"$a" >new/"$a" ; done
It will make “new” directory with converted files.
Posted on September 10th, 2011 by admin
Filed under: Development