Return to Snippet

Revision: 12066
at February 28, 2009 22:12 by Dorgendubal


Initial Code
find -name "PATTERN" -exec iconv --from-code=ENCODING_1 --to-code=ENCODING_2 '{}' -o '{}' \;
find -name "*.php" -exec iconv --from-code=ISO8859-1 --to-code=UTF-8 '{}' -o '{}' \;
find -regex ".*transl.*\.txt" -exec iconv --from-code=ISO8859-1 --to-code=UTF-8 '{}' -o '{}' \;

Initial URL


Initial Description
Useful to convert all matching files from one encoding to another.
Some examples:

Initial Title
Convert encoding of all matching files in directory and sub-directories

Initial Tags
Bash

Initial Language
Bash