Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
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


Thread View

Thread Author Date
Strict EOL charactersJon Gubman2005-12-19 22:36
      RE: Strict EOL charactersJames Gray2005-12-19 23:47
            RE: Strict EOL charactersJon Gubman2005-12-20 00:00

Post a followup to this message