You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/04/10 13:53:00 UTC

[jira] [Commented] (CAMEL-12274) Bindy - Unescape double quotes inside CSV field

    [ https://issues.apache.org/jira/browse/CAMEL-12274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16432290#comment-16432290 ] 

ASF GitHub Bot commented on CAMEL-12274:
----------------------------------------

GitHub user dmvolod opened a pull request:

    https://github.com/apache/camel/pull/2287

    CAMEL-12274: Bindy - Unescape double quotes inside CSV field

    This fix is related to RFC 4180 section 2.7 https://tools.ietf.org/html/rfc4180#section-2 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dmvolod/camel CAMEL-12274

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2287.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2287
    
----
commit 2df8c2bec8b0d913d0087748c9fef102db438ad7
Author: Dmitry Volodin <dm...@...>
Date:   2018-04-10T13:49:06Z

    CAMEL-12274: Bindy - Unescape double quotes inside CSV field

----


> Bindy - Unescape double quotes inside CSV field
> -----------------------------------------------
>
>                 Key: CAMEL-12274
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12274
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-bindy
>    Affects Versions: 2.20.2
>            Reporter: Bohdan
>            Assignee: Dmitry Volodin
>            Priority: Minor
>             Fix For: 2.22.0
>
>
> In CSV quote character inside a field is represented by 2 quote characters ([https://en.wikipedia.org/wiki/Comma-separated_values#Standardization]).
> For example, value
> {noformat}
> a"b"c{noformat}
> is represented in CSV as
> {noformat}
> "a""b""c"{noformat}
> . However, after unmarchalling it with bindy, the resulting value is
> {noformat}
> a""b""c{noformat}
> instead of
> {noformat}
> a"b"c{noformat}.
> I know that unescaping quotes can be done manually, for example, by providing method in @DataField annotation. But shouldn't this be the default behavior?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)