diff --git a/src/Goodby/CSV/Export/Standard/CsvFileObject.php b/src/Goodby/CSV/Export/Standard/CsvFileObject.php index da3f4d3..166739f 100644 --- a/src/Goodby/CSV/Export/Standard/CsvFileObject.php +++ b/src/Goodby/CSV/Export/Standard/CsvFileObject.php @@ -72,7 +72,7 @@ public function fputcsv($fields, $delimiter = null, $enclosure = null, $escape = $line = rtrim($line, "\n"). $this->newline; // if the enclosure was '' | false - if (empty($enclosure)) { + if (empty($enclosure) || $enclosure === "\0") { $line = str_replace("\0", '', $line); }