Re: problem with File_CSV
| From: | Tomas V.V.Cox | Date: | Tue, 09 Jul 2002 09:54:51 +0000 |
| Subject: | Re: problem with File_CSV | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-7585@lists.php.net to get a copy of this message | ||
Dan Allen wrote:
>
> I am having a problem with File_CSV and I am not sure if it is just
> me or the class. If you have to use quotes in a field for a csv
> file, you have to either carrot the quote or use two double quotes,
> such as
>
> "This is a ^" field"
>
> or
>
> "This is a "" field"
>
> When I print out the result from the class, I am getting
>
> This is a ^" field
>
> or
>
> This is a "" field
>
> To me, this seems wrong. I would expect
>
> This is a " field
>
More than wrong, I'd say "intelligent". AFAIK there is no CSV format
spec doc, so my question is: where did you got the info about the quote
scaping? I could add the workarround you suggested (with a new conf
parameter "quote escape char") if you answer my question :)
Tomas V.V.Cox