fgetcsv actually allows the use of different delimiters for fields (default is a comma) and enclosures for text (default is double quotation marks). I had a situation where I had quotation marks in my text field and they weren't getting parsed correctly no matter what I did. Then I thought different enclosures would be nice, so I worked up a patch on node_import that creates a settings page where you can type in whatever delimiter and enclosure you want to use. Works on my setup of Drupal 5.7 and Node_import 1.5.

Hope this helps someone else.

CommentFileSizeAuthor
node_import-settings.patch1.57 KBdavemybes

Comments

Robrecht Jacques’s picture

Status: Active » Fixed

Commited. Will be included in 5.x-1.6. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.