Thursday, August 5, 2010

Linux: change encoding simply

QUICK: 
 
$ recode UTF-8..latin1 foo
NOTE: The file foo will be overwritten by the command
 
Option 2:
 
iconv --from-code=ISO-8859-1 --to-code=UTF-8 ./oldfile.htm > ./newfile.html

MULTI-FILE:

find . -name "*.txt" -exec iconv -f ISO-8859-1 -t UTF-8 {} -o {}.utf8 \;
 

No comments:

Post a Comment