JuliaStats/DataFrames.jl — pull request #476 by johnmyleswhite (2014-01-16 16:14:24+00:00)
Title: Escape quotemarks that occur inside of strings when printing DF's

Our current printing is slightly broken, because we don't escape quotemarks that occur inside of strings when we print a DataFrame. This produces invalid CSV files that can't be read in correctly.

Getting this fix just right is a little tricky. This is a very quick patch that solves the problem, but is a bit ugly. Two main questions:

* Should we try to change `print_escaped` in Base to do what the new `escapedprint` function does?
* Should we escape both single and double quotemarks inside of strings? To make valid CSV files, we only need to escape the kind of quotemark that is being used to surround fields.