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 :
CSV.parse(data, {:headers => true, :header_converters => [:symbol, :downcase], :col_sep => '|'}).each do |row|
if row[:name]
counter += 1
end
Here is the case that produces Message: Illegal quoting in line 2 :
|test "Some quoted name"|2|12|Machine|
But this one works and other cases work:
|"Some quoted name"|2|12|Machine|
How do I get passed this one?