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.
| Comment | File | Size | Author |
|---|---|---|---|
| node_import-settings.patch | 1.57 KB | davemybes |
Comments
Comment #1
Robrecht Jacques commentedCommited. Will be included in 5.x-1.6. Thanks!
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.