I am creating a CSV file from Ruby. The problem is that the row of the column will contain double quotes, single quotes. How can I avoid these things?
"Mary had a little so called \"lamb\"","34","none" "something is not \"right\"","23","none"
Each column is enclosed in double quotes, followed by a comma (and without a space), and written to a file.
Also, how do you embed CSV in MySQL? Will you need to use something like PHP mysql_real_escape_string?
source share