Skip to content

Commit

Permalink
Merge pull request #199 from mvaraujo/csv-utf8-bom
Browse files Browse the repository at this point in the history
Set BOM for CSV export closes #198
  • Loading branch information
jleyva authored Oct 3, 2024
2 parents f75634f + 4128827 commit 6be60b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion export/csv/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function export_report($report) {
}

$csvdelimiter = get_config('block_configurable_reports', 'csvdelimiter');
$csvexport = new csv_export_writer("$csvdelimiter");
$csvexport = new csv_export_writer("$csvdelimiter", '"', 'application/download', true);
$csvexport->set_filename($filename);

foreach ($matrix as $ri => $col) {
Expand Down

0 comments on commit 6be60b5

Please sign in to comment.