From: William James Date: 2006-03-29T01:08:56+09:00 Subject: Re: Changing the quote-character in csv parsing Jan Topinski wrote: > Hi, > Don't know how it is with fastercsv but csv.rb has double quote hardcoded as > I understand. I think best is to substitute all double quots in your text > with single and vice versa. You can do it with gsub this way: > > > line.gsub!(/'|\"/){ |c| > if c == "'" > "\"" > else > "'" > end > } "He said, \"I don't care.\"".tr("'\"", "\"'")