Closed (fixed)
Project:
Node import
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2007 at 09:12 UTC
Updated:
31 Mar 2008 at 08:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
ray007 commentedI think I tracked the error to fgetcsv() already returning false data.
Seems we need to use a custom cvs-lineparsing routine, maybe get one from the comment at http://de.php.net/manual/en/function.fgetcsv.php#75332 would do it?
Will test that and report back ...
Comment #2
ray007 commentedAll right, the attached patch gives node_import its own fgetcsv() replacement function that makes things work.
Should probably be a drupal function and not only a node_import module function, but better here for now.
Maybe we should also replace the old {} string index operators with [] access, but as I said: it works ;-)
Comments?
Comment #3
tanoshimi commentedI've just noticed I had the same problem when importing a CSV which had an apostrophe ' (ASCII code 39) in the body. My database is UTF-8, so I don't quite understand why this came out as a �, but I'm hoping that your patch might fix my problem too. Is there any progress with this getting reviewed or added to the release?
Comment #4
summit commentedHi,
Above solution is not working for me. When Node-import sees a special character, it breaks the sentence and the end of the sentence is not imported anymore.
Please assist, thanks in advance!
greetings,
Martijn
Comment #5
ray007 commentedI guess you did make sure your input is valid utf-8 ?
Comment #6
summit commentedHi,
I made my Node-import list in Excel.
Then I saved as TXT (TAB-delimited) *.txt.
THis file I import then in Node-import.
Should I set an option in Excel?
greetings,
Martijn
Comment #7
summit commentedHi,
It worked indeed with valid utf-8 input. Am I correct that the " issue stated in http://drupal.org/node/168922 is also solved with this patch?
greetings,
Martijn
Comment #8
summit commentedHi,
It worked indeed with valid utf-8 input. Am I correct that the " issue stated in http://drupal.org/node/168922 is also solved with this patch?
greetings,
Martijn
Comment #9
yang_yi_cn commentedI think an alternative way is save the .csv file using OpenOffice, which adds double quotes ("") to every fields.
Comment #10
freddyhardest commentedOpenOffice resolved the problem. Thank you people!
Comment #11
Robrecht Jacques commentedFixed. Will be included in next release of node_import (5.x-1.5). Thanks!
Comment #12
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.