Skip to content

Commit

Permalink
Remove CSV flags before outputting the file content #325
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jun 4, 2019
1 parent 2e4e026 commit c8d1bf7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ public function chunk(int $length): Generator

$input_bom = $this->getInputBOM();
$this->document->rewind();
$this->document->setFlags(0);
$this->document->fseek(strlen($input_bom));
$start = (array) str_split($this->output_bom.$this->document->fread($length), $length);
foreach ($start as $chunk) {
Expand Down

0 comments on commit c8d1bf7

Please sign in to comment.