/**
* 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
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;
}