Windmill icon indicating copy to clipboard operation
Windmill copied to clipboard

Double quote handle

Open mlerozier opened this issue 1 year ago • 0 comments

List<MyObject> test = List.of(new MyObject().setCommentary("\"test\";").setStatus("status")); Windmill .export(test) .withHeaderMapping(new ExportHeaderMapping<MyObject>() .add("comment", MyObject::getCommentary) .add("status", MyObject::getStatus) ) .asCsv(ExportCsvConfig.builder().separator(';').quoteChar('"').escapeChar('\\').charset(BomCharset.UTF_8).build()) .writeTo(outputStream); }

The expected result is ["test";] in the first cell and [status] in the second.

But the result is [\test"] and [;status"]

mlerozier avatar Jun 12 '24 12:06 mlerozier