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