Tips Infra UTF8

Probleme d'encodage de fichier

Recuperer l'encodage des fichiers

file -i index.html

Boucle pour changer l'encodage en utf8

find . -name b -prune -o -name '*.html' -type f -print -exec iconv -f Windows-1252 -t UTF-8//TRANSLIT {} -o {} \;

Exclure un dossier :

exemple = exclusion tu dossier b

-name b -prune -o