From c5c42cfbe88904ee9b7682fb6dd6b9cebc28130d Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Mon, 9 Jul 2018 12:50:03 +0100 Subject: [PATCH] remove custom field separator; just go with the default php behaviour --- public/list.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/list.php b/public/list.php index d8b4b211..fd43d879 100644 --- a/public/list.php +++ b/public/list.php @@ -92,7 +92,6 @@ if (safeget('output') == 'csv') { header('Content-Disposition: attachment;filename='.$table.'.csv'); print "\xEF\xBB\xBF"; # utf8 byte-order to indicate the file is utf8 encoded - # print "sep=;"; # hint that ; is used as seperator - breaks the utf8 flag in excel import! print "\n"; if (!defined('ENT_HTML401')) { # for compability for PHP < 5.4.0 @@ -108,7 +107,7 @@ if (safeget('output') == 'csv') { $columns[] = $key; } } - fputcsv($out, $header, ';'); + fputcsv($out, $header); # print items as csv foreach ($items as $item) { @@ -116,7 +115,7 @@ if (safeget('output') == 'csv') { foreach ($columns as $column) { $fields[] = $item[$column]; } - fputcsv($out, $fields, ';'); + fputcsv($out, $fields); } fclose($out);