Solutions Log by Dan Reiland

24Jun/090

Convert text file to UTF-8 encoding from the shell

1
for f in *.txt; do iconv -f mac -t utf-8 "$f" >"$f.utf8"; done

Note:
-f Input file encoding type
-t Output file encoding type

Reference: http://manual.macromates.com/en/saving_files.html

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.