Return to Snippet

Revision: 58671
at July 28, 2012 02:23 by rabc


Initial Code
#!/bin/bash

find /Path/To/Files -name \*.xxx -type f | \
    (while read file; do
        iconv -f ISO-8859-1 -t UTF8 "$file" > "${file%.xxx}-utf8.xxx";
    done);

Initial URL
http://stackoverflow.com/questions/1182037/osx-change-file-encoding-iconv-recursive

Initial Description
iconv -l to show all available encodes, replace xxx with you file ext

Initial Title
Convert file encoding recursively

Initial Tags
file, Bash

Initial Language
Bash