Solutions Log

Convert text file to UTF-8 encoding from the shell

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