Browse Source

Added BOM to CSV export files

Norbert Orzechowicz 12 năm trước cách đây
mục cha
commit
0ba9efeba3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Export/Exporter.php

+ 1 - 1
Export/Exporter.php

@@ -46,7 +46,7 @@ class Exporter
                 $contentType = 'application/json';
                 break;
             case 'csv':
-                $writer      = new CsvWriter('php://output', ',', '"', "", true);
+                $writer      = new CsvWriter('php://output', ',', '"', "", true, true);
                 $contentType = 'text/csv';
                 break;
             default: