Re: Handling "" in DataGrid CSV

From: Date: Tue, 23 Jan 2007 17:52:20 +0000
Subject: Re: Handling "" in DataGrid CSV
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26401@lists.php.net to get a copy of this message
Hi Lars, Lars Olesen wrote: > The following csv-file: > > "22-01-2007";"Some text";"-220,00";"135,73" > "10-01-2007";"Some other text";"-45,00";"355,73" > [...] > > That would render as this: > > +--------------+-------------------+-----------+----------+ > | 0 | 1 | 2 | 3 | > +--------------+-------------------+-----------+----------+ > | "22-01-2007" | "Some text" | "-220,00" | > "135,73" | > | "10-01-2007" | "Some other text" | "-45,00" | > "355,73" | > +--------------+-------------------+-----------+----------+ > > But how will one handle the ". Can DataGrid_DataSource_CSV be told how > to handle the "? (Very) Dirty way: Use a column formatter for each column and remove them yourself. ;-) Clean way: Write a feature request. I'm not sure whether these quotes can be auto-detected in all cases (without removing the wanted quotes). If not, we can add a new option for them. Regards, Mark -- http://www.markwiesemann.eu

« previous php.pear.general (#26401) next »