CSV - Unquoted fields do not allow \r or \n (line 2)

后端 未结 8 1333
耶瑟儿~
耶瑟儿~ 2020-12-28 15:38

Trying to parse a CSV file, but still getting the error message Unquoted fields do not allow \\r or \\n (line 2)..

I found here at SO similar topic,

8条回答
  •  粉色の甜心
    2020-12-28 16:28

    Simpler solution if the CSV was touched or saved by any program that may have used weird formatting (such as Excel or Spreadsheet):

    1. Open the file with any plain text editor (I used Sublime Text 3)
    2. Press the enter key to add a new line anywhere
    3. Save the file
    4. Remove the line you just added
    5. Save the file again
    6. Try the import again, error should be gone

提交回复
热议问题