For a content migration I had to import about 1000 nodes which I received in CSV format.
Field delimiter: ,
Escape character: \
Fields enclosed by: "
Lines terminated by: \n
The csv had stuff like align=\"left\" in it, which looks fine and quite "standard" to me, but Feeds didn't unescape the content so it was also importered with \"-s in it.
After many attempts I discovered by accident that double double quotes were imported correctly: align=""left"". But the only way to get the double double quotes was to export to LibreOffice and save as csv. PMA and SELECT INTO didn't produce such csv's.
A configurable escape character would have saved me many hours... Unfortunately, Feeds does not use fgetcsv() but a custom csv parser, so I couldn't fix it myself...
Comments
Comment #1
colan> Feeds does not use fgetcsv() but a custom csv parser, so I couldn't fix it myself...
Let's get that one done first: #1369874: Don't roll own CSV parser; use PHP's native one
Comment #2
colanLet's generalize this a bit.
Comment #3
adbo commentedsubscribe
Comment #4
gaëlgSee http://drupal.org/node/1369874#comment-5755222 for a workaround.
Comment #5
bluegeek9 commentedUnfortunately, Drupal 7 is End of Life and no longer supported. We strongly encourage you to upgrade to a supported version of Drupal.