note 68597 deleted from function.fputcsv by jani
| From: | jani@php.net | Date: | Mon, 15 Oct 2007 08:58:31 +0000 |
| Subject: | note 68597 deleted from function.fputcsv by jani | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-131389@lists.php.net to get a copy of this message | ||
Note Submitter:
----
It's unrealistic to require the field enclosure to be one character because it's very
common to have "empty string" as the field delimiter (especially when TAB is used as field
delimiter).
I tried to use "\0" as the field enclosure, hoping that'd be interpreted as an empty
string, but fputcsv (in PHP5) translated it into literal.
By the way, fputcsv wrongly adds the field enclosures whenever a field contains a space. The
expected behavior should be adding the field enclosures when a field contains a field delimiter.