add UTF-8 Byte order mark when writing CSV
This commit is contained in:
parent
2735a2fbcd
commit
613ba6398c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user