admin/emails/broken: remove trailing spaces after email addresses
[platal.git] / upgrade / 0.9.14 / wiki.utf8.sh
index 2d0f4da..63c56af 100644 (file)
@@ -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