csv export quotation problem

Questionscsv export quotation problem
bazel asked 5 years ago

I set export to csv but some rows from one text column are wrapped with quotations, others are not. I dont need quotations at all. Can I remove somehow?

Thanks

1 Answers
Abu Ghufran answered 5 years ago

This is default behavior of fputcsv() function of php. If you want no quotes you can edit jqgrid_dist.php and replace line:

fputcsv($fp, $value);
to
fputcsv($fp, $value, ",", chr(0));

Reference: http://stackoverflow.com/questions/2489553/forcing-fputcsv-to-use-enclosure-for-all-fields

Your Answer

8 + 8 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!