Explorar o código

Added BOM to CSV export files

Norbert Orzechowicz %!s(int64=12) %!d(string=hai) anos
pai
achega
0ba9efeba3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: