I am using Camel Bindy to process csv files that I recieve from a third party company.
In their csv they are using a separator that is in the extended ascii table: "\u00a4" (code 164 in decimal).
I have tried to set bindy up like this:
@CsvRecord(separator = "\u00a4")
But it fails to separate the columns
When I change the csv separator by something more standard like ";" everything works fine. As this csv is sent from an external company I can't change it myself.
Is there a way I can setup Bindy to support this?
@CsvRecord(separator = "§")
public class Employee {
@DataField(pos = 1)
private String employeeId;
@DataField(pos = 2, pattern = "dd/MM/yyyy")
private Date startDate;
@DataField(pos = 3, pattern = "dd/MM/yyyy")
private Date endDate;
@DataField(pos = 4)
private Character code;
// Getters and Setters
}
CSV content: "aC1aoC3"§"12/04/2017"§"12/04/2017"§"A" "aC1aoC3"§"13/04/2017"§"13/04/2017"§"A" "aC1aoC3"§"14/04/2017"§"14/04/2017"§"A" "aC1aoC3"§"15/04/2017"§"15/04/2017"§"A" "aC1aoC3"§"16/04/2017"§"16/04/2017"§"U" "aC1aoC3"§"17/04/2017"§"17/04/2017"§"U" "aC1aoC3"§"18/04/2017"§"18/04/2017"§"U"
Many thanks for your help
Gilles