Open knight2010 opened 9 months ago
$ file -i input.file $ cat input.file $ iconv -f ISO-8859-1 -t UTF-8//TRANSLIT input.file -o out.file $ cat out.file $ file -i out.file
`
FROM_ENCODING="value_here"
TO_ENCODING="UTF-8"
CONVERT=" iconv -f $FROM_ENCODING -t $TO_ENCODING"
for file in *.txt; do $CONVERT "$file" -o "${file%.txt}.utf8.converted" done exit 0
$ file -i input.file $ cat input.file $ iconv -f ISO-8859-1 -t UTF-8//TRANSLIT input.file -o out.file $ cat out.file $ file -i out.file