add UTF-8 Byte order mark when writing CSV

This commit is contained in:
Rodney Figaro 2017-04-12 15:45:21 +02:00
parent 2735a2fbcd
commit 613ba6398c

View File

@ -58,6 +58,7 @@ class CSVWriter
$f = fopen($this->file_path, 'w');
if ($f) {
fwrite($f, pack('CCC', 0xEF, 0xBB, 0xBF));
fwrite($f, $this->buffer);
fclose($f);
}