User Tools

Site Tools

Please note, that this is an old archived version of this site. Check out the new version at!

Change Encoding with iconv

Convert Single File

iconv -f iso-8859-1 -t utf-8 -o OUTPUT.txt INPUT.txt

Converts INPUT.txt from iso-8859-1 to utf-8 and writes it to OUTPUT.txt.

Convert All Files in a Directory

for f in $(find . -type f)
  iconv -f iso-8859-1 -t utf-8 -o ${f}_$$_TEMP ${f} \
  && mv ${f}_$$_TEMP ${f}
info/script/iconv.txt · Last modified: 2013-02-04 22:17 (external edit)