Skip to content

Instantly share code, notes, and snippets.

Created November 21, 2008 03:45
Show Gist options
  • Save anonymous/27339 to your computer and use it in GitHub Desktop.
Save anonymous/27339 to your computer and use it in GitHub Desktop.
asdf" asdfasdf "
odfas
asdfas
>> FasterCSV.parse(s.gsub(/"/, '\"'))
FasterCSV::MalformedCSVError: Illegal quoting on line 1.
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1650:in `shift'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1568:in `loop'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1568:in `shift'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1513:in `each'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1524:in `to_a'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1524:in `read'
from /opt/local/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1216:in `parse'
from (irb):27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment