[ 
https://issues.apache.org/jira/browse/CAMEL-5871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antoine Bertrand updated CAMEL-5871:
------------------------------------

    Attachment: camel-bindy-single-quote-start-word-csv-fix.patch

Patch against the latest trunk.

The bug is due to the quoting characters being hard coded into the unmarshaller 
and doesn't take the quote char provided via the annotations.

To solve that, we set a default quoting character ('"' double quote) and make 
it accessible to the unmarshaller. We add a flag for the marshaler to produce 
or note a quoted csv file with the provided quoted character.
                
> Unable to parse if a field has a ' (single quote) at it's begining 
> -------------------------------------------------------------------
>
>                 Key: CAMEL-5871
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5871
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-bindy
>    Affects Versions: 2.8.0, 2.9.0, 2.10.0, 2.11.0
>            Reporter: Antoine Bertrand
>         Attachments: camel-bindy-single-quote-start-word-csv-fix.patch
>
>
> Bindy is unable to parse correctly a CSV file if a field begin with a ' 
> (single quote).
> This case is valid for foreign names/words or french apostrophe:
> {code:title=order.csv}
> 10,A9,Patric,'T jo,ISIN,XD12345678,BUY,Share,2500.45,USD,08-01-2009
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to