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

Bindy - Unescape double quotes inside CSV field

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.20.2
    • Fix Version/s: 2.21.1, 2.22.0
    • Component/s: camel-bindy
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: