# Re: Q about the FasterCSV

**URL:** <https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298>\
**Category:** Ruby\
**Created:** [April 28, 2006, 4:39am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298 "2006-04-28T04:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [April 28, 2006, 4:39am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298/1 "2006-04-28T04:39:28Z")

</div>

Dave B. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] :

# Oh, I don’t want the patch. It’s a terrible idea! “foo, bar, ‘baz’”

# aren’t CSV, they’re CASWSSV (comma and some white-space separated

# values). That’s got to be a whole new library 🙂

as long as the values are bounded by a comma, then they are csv  
delimited. space is a value, right?

eg

“foo, bar, ‘baz’”, foo, “bar” , foo"bar", foo’bar’

can be parsed as (by the eye as of the moment):

[“foo, bar, ‘baz’”," foo"," "bar" “,” foo"bar"“,” foo’bar’"]

maybe, this can be a nice little rubyquiz?

not all data is perfect, that is why there are rubyists like Dave and  
James 🙂

thanks and kind regards -botp

---

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [April 28, 2006, 6:03am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94298/2 "2006-04-28T06:03:48Z")

</div>

On Apr 27, 2006, at 9:36 PM, Peña, Botp wrote:

> as long as the values are bounded by a comma, then they are csv  
> delimited. space is a value, right?

There’s no problem with the space, correct. The quote after it is  
what makes the document illegal. You always have to escape the  
escape character, and that’s the quote. To do that, a field must  
begin with a quote…

What’s the correct way to handle:

one, “two”

? Is the second field two or “two” or “two”. I have no  
idea. I do know that it is invalid CSV though. 😉

James Edward G. II
