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

csv component doen't accept tab character as delimiter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.11.1
    • None
    • extra
    • java version "1.7.0_25"
      Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

      64 bit Ubuntu linux 12.04

    • Novice

    Description

      I have a route like the following:

      <route>
      <from uri="file://tracnet?charset=ISO-8859-1"/>
      <c:split streaming="true">
      <c:tokenize token="\n"/>
      <unmarshal>
      <csv delimiter="\t"/>
      </unmarshal>
      <to uri="log:org.hisp.dhix?showAll=true"/>
      </c:split>
      </route>

      My camel context complains that the delimiter should be of length 1 when I try to load this. It seems it sees my escaped tab as 2 characters?

      Attachments

        Activity

          People

            njiang Willem Jiang
            bobjolliffe Bob Jolliffe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: