Ruby unable to parse a CSV file: CSV::MalformedCSVError (Illegal quoting in line 1.)

后端 未结 9 2167
被撕碎了的回忆
被撕碎了的回忆 2021-02-03 22:17

Ubuntu 12.04 LTS

Ruby ruby 1.9.3dev (2011-09-23 revision 33323) [i686-linux]

Rails 3.2.9

Following is

9条回答
  •  南笙
    南笙 (楼主)
    2021-02-03 22:57

    Try this hint:

    1. Open your CSV file in a text editor
    2. Select the whole file and copy it
    3. Open a new text file
    4. Paste the CSV data into the new file and Save the new file
    5. Import your new CSV file

提交回复
热议问题