Customer Portal

CSV file with non-standard delimiters and quote characters

Comments 1

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello Andy,
    you can set such delimiter with ctl: set field delimiter as `'\u0014'` - all, that is between `` characters is interpreted as ctl code.
    Unfortunately only single and double quote characters are recognized as quotation by Clover.
    But you can use following workaround to parse the data:
    • read full record as one string field

    • translate \u00fe to " in Reformat:
      function transform() {
      $0.field1 := translate($0.field1,'\u00fe','"');
      }

    • send translated field to Data Reader - use port:$0.field1:discrete in fileURL attribute. Remember to set eofAsDelimiter="true" on output metadata

Please sign in to leave a comment.