Function to convert UTF-8 to WIN-1251 charset.
function iconv-win1251 {if [ ${1%\.*} == ${1##*\.} ]; thennewfile="$1-win1251"elsenewfile="${1%\.*}-win1251.${1##*\.}"fiiconv $1 --from-code UTF-8 --to-code WINDOWS-1251 > $newfilels -l $newfile $1}











1 comments:
function iconv-win1251 {
if [ ${1%\.*} == ${1##*\.} ]; then
newfile="$1-win1251"
else
newfile="${1%\.*}-win1251.${1##*\.}"
fi
iconv $1 --from-code UTF-8 --to-code WINDOWS-1251 > $newfile
ls -l $newfile $1
}
Post a Comment