Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12274

Bindy - Unescape double quotes inside CSV field

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.20.2
    • 2.21.1, 2.22.0
    • camel-bindy
    • None
    • Unknown

    Description

      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

      a"b"c

      is represented in CSV as

      "a""b""c"

      . However, after unmarchalling it with bindy, the resulting value is

      a""b""c

      instead of

      a"b"c

      .

      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?

      Attachments

        Activity

          People

            dmvolod Dmitry Volodin
            bgd Bohdan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: