« Return to Thread: FasterCSV: preserving quoted strings

Re: FasterCSV: preserving quoted strings

by Marcus Mitchell-2 :: Rate this Message:

Reply to Author | View in Thread

Bil Kleb wrote:

> On Feb 26, 2:08�pm, James Gray <ja...@...> wrote:
>>
>> Well, then you don't really want a CSV parser.
>>
>> Quotes in CSV data are used to indicate field grouping. �In other �
>> words, they are metadata about the content and it doesn't make sense �
>> for a parser to return those to you. �It's like how an XML parser �
>> wouldn't give you the equals sign used to set a tag attribute.
>
> Ah, OK.  That clears things up.
>
> Thanks,

or use :force_quotes => true when FasterCSV.open or FasterCSV.new
--
Posted via http://www.ruby-forum.com/.

 « Return to Thread: FasterCSV: preserving quoted strings