Fix issues with non-ASCII characters in wiki file names
[platal.git] / upgrade / 0.9.14 / wiki.utf8.sh
1 #!/bin/sh
2
3 WIKISPOOLDIR='../../spool/wiki.d/'
4
5 find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";"
6 for i in `find $WIKISPOOLDIR -type f`; do
7 CONV=`echo -n $i | iconv -t UTF-8`
8 mv $i $i.latin1
9 iconv -t UTF-8 $i.latin1 > $CONV
10 done
11
12 echo "Les pages de wiki ont ete converites en UTF-8"
13 echo "Verifie que tout c'est bien passe en presse ^D"
14 cat
15
16 find $WIKISPOOLDIR -name '*.latin1' -exec rm {} ";"