/ Published in: Bash
                    
                                        
Useful to convert all matching files from one encoding to another.
Some examples:
                Some examples:
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
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 '{}' \;
Comments
 Subscribe to comments
                    Subscribe to comments
                
                