Skip to content

Field containing comma creates an parsing issue while using the save() function #177

@romainlaisne

Description

@romainlaisne

Hi,

I am parsing a php array to csv using the save() function of this library.

I get an parsing issue, the fields are not parse correctly, when one of the field in my php array contains an comma, which is also the field delimiter in my case.

Here is an example of the CSV output
,"""9","72""",,newsletter,,abos_speedresa,Monsieur,"free travel"

See that the value was 9,72 and it has been strangely quoted!
"free travel" has been correctly parsed with added quote however.

If anyone has an idea how to fix this?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions