X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=upgrade%2F0.9.14%2Fwiki.utf8.sh;h=63c56af9d98b917c8c0f8be062f8ec613e524d7e;hb=c37a2d3492d1abdf940de7a303c35874fa75fc37;hp=2d0f4da0bab6cd2fc240bf51d4938f4cd8733cb6;hpb=73cf81b8b1acba2b3056f789c68a40fff90efd04;p=platal.git diff --git a/upgrade/0.9.14/wiki.utf8.sh b/upgrade/0.9.14/wiki.utf8.sh index 2d0f4da..63c56af 100644 --- a/upgrade/0.9.14/wiki.utf8.sh +++ b/upgrade/0.9.14/wiki.utf8.sh @@ -7,11 +7,11 @@ find $WIKISPOOLDIR -name 'cache_*' -or -name 'tmp_*' -exec rm {} ";" for i in `find $WIKISPOOLDIR -type f`; do CONV=`echo -n $i | iconv -t UTF-8` mv $i $i.latin1 - iconv -t UTF-8 $i.latin1 > $CONV + iconv -f latin1 -t UTF-8 $i.latin1 > $CONV done for i in `find $IMAGESPOOLDIR -type f`; do - CONV=`echo -n $i | iconv -t UTF-8` + CONV=`echo -n $i | iconv -f latin1 -t UTF-8` if [ $i != $CONV ]; then mv $i $CONV fi