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

robert castelo’s picture

I'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 \"

robert castelo’s picture

Status: Active » Closed (won't fix)