Merge branch 'module_training_encoding'
This commit is contained in:
commit
d1d07a4dec
@ -56,9 +56,12 @@ class CSVWriter
|
|||||||
$this->flush();
|
$this->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// convert to ISO-8859-1
|
||||||
|
$this->buffer = utf8_decode($this->buffer);
|
||||||
|
|
||||||
$f = fopen($this->file_path, 'w');
|
$f = fopen($this->file_path, 'w');
|
||||||
if ($f) {
|
if ($f) {
|
||||||
fwrite($f, pack('CCC', 0xEF, 0xBB, 0xBF));
|
// fwrite($f, pack('CCC', 0xEF, 0xBB, 0xBF));
|
||||||
fwrite($f, $this->buffer);
|
fwrite($f, $this->buffer);
|
||||||
fclose($f);
|
fclose($f);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user