On 2004/04/12, at 1:33, David Sklar wrote:


Attached is a patch that implements fputcsv() as a complement to fgetcsv().

There are two things that still need improvement:

- It adds "\n" as a newline onto the end of each line. I think it would be better to add a platform-specific line ending.

- It is not mbstring-aware.

As for writing stuff, we don't have to care about in which encoding strings
are encoded as long as it is 8-bit compatible. UTF-16 / UTF-32 / UCS-2 /
UCS-4 are not 8-bit compatible and I've never seen a case where one of
these is utilised for CSV files, so I think your code is actually
"multibyte safe" :)


Moriyoshi


Any suggestions for fixing these things (or other issues) would be appreciated.


Thanks,
David

-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to