Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double quote handle #22

Open
mlerozier opened this issue Jun 12, 2024 · 0 comments
Open

Double quote handle #22

mlerozier opened this issue Jun 12, 2024 · 0 comments

Comments

@mlerozier
Copy link

mlerozier commented Jun 12, 2024

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"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant