| Message: 6609 |
 |
BY: James Gray (bbazzarrakk) DATE: 2005-12-19 23:47 SUBJECT: RE: Strict EOL characters First, are you aware that you can set the line endings FasterCSV uses?
FasterCSV.open("whatever.csv", :row_sep => "\r\n")
The strictness of the FasterCSV parser is one of the keys to its speed. And, you really aren't allowed to have a \r in an unquoted field, according to the RCF.
That said, this mis-feature is bugging me too. I find myself catching MalformedCSVError often and retrying it with a different line ending. I will add an autodetect line-ending feature to the next version.
Hope that helps.
James Edward Gray II
| |