title: Parsing csv file in Ruby
body: <p>I'm expiriencing issue with parsing my CSV file and I cannot resolve this for a while now. My pipe seperated CSV file has a special case that fails the parsing. Here is my code :</p>
  
  <pre><code>CSV.parse(data, {:headers =&gt; true, :header_converters =&gt; [:symbol, :downcase], :col_sep =&gt; '|'}).each do |row|
     if row[:name]
        counter += 1
     end
  </code></pre>
  
  <p>Here is the case that produces <code>Message: Illegal quoting in line 2</code> :</p>
  
  <pre><code>|test "Some quoted name"|2|12|Machine|
  </code></pre>
  
  <p>But this one works and other cases work:</p>
  
  <pre><code>|"Some quoted name"|2|12|Machine|
  </code></pre>
  
  <p>How do I get passed this one?</p>