Closed (won't fix)
Project:
User Import
Version:
5.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2009 at 05:56 UTC
Updated:
4 Apr 2009 at 17:02 UTC
i found backslash problem when this types of csv data.
"123","abc\","def"
then second filed contains [ abc","def"]
if this types of csv line founds then backslash is consider as escape character
is there any solution exists for this problem.
i found on php.net for fgetcsv(), escape charater parameter is added in 5.3 version.
but 5.3 is still not release. so what may be the solution for the problem.
Comments
Comment #1
robert castelo commentedI'll add a note to the README.txt to warn people. This will give people an incentive to update to PHP 5.3 when it comes out.
In the mean time one solution is to do a search and replace on the CSV file to escape \"
Comment #2
robert castelo commented