diff options
Diffstat (limited to 'src/Config/Output.php')
-rw-r--r-- | src/Config/Output.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Config/Output.php b/src/Config/Output.php index 81b6434..6ba19ce 100644 --- a/src/Config/Output.php +++ b/src/Config/Output.php @@ -100,6 +100,7 @@ trait Output { if (empty($str)) { $this->output_bom = null; + return $this; } $str = (string) $str; @@ -187,7 +188,7 @@ trait Output $csv->rewind(); $csv->setFlags(SplFileObject::READ_CSV); if (! empty($bom) && ! empty($input_bom)) { - $csv->fseek(strlen($input_bom)); + $csv->fseek(mb_strlen($input_bom)); } echo $bom; $res = $csv->fpassthru(); |