~maj plugins
[ptitvelo/web/www.git] / www / plugins / spip-bonux-3 / inc / exporter_csv.php
index bad0aed..20862e8 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Plugin Spip-Bonux
  * Le plugin qui lave plus SPIP que SPIP
- * (c) 2008 Mathieu Marcillaud, Cedric Morin, Romy Tetue
+ * (c) 2008 Mathieu Marcillaud, Cedric Morin, Tetue
  * Licence GPL
  *
  * Fonctions d'export d'une requete sql ou d'un tableau
@@ -41,7 +41,8 @@ function exporter_csv_champ($champ) {
 function exporter_csv_ligne($ligne, $delim = ',', $importer_charset = null) {
        $output = join($delim, array_map('exporter_csv_champ', $ligne))."\r\n";
        if ($importer_charset){
-               $output = unicode2charset(html2unicode(charset2unicode($output)), $importer_charset);
+               $output = str_replace('’', '\'', $output);
+    $output = unicode2charset(html2unicode(charset2unicode($output)), $importer_charset);
        }
        return $output;
 }