T
T
taylor962020-04-10 12:46:16
Java
taylor96, 2020-04-10 12:46:16

How to remove the slash when writing a comma to a cell by CSVPrinter?

I use CSVPrinter with this format:

CSVFormat csvFormat = CSVFormat.DEFAULT.withEscape('\\').withQuoteMode(QuoteMode.NONE);

It allows you to write quotes.
I write like this:
csvPrinter.printRecord("TYPE_NAME=SO_OrgCategory_SCH;KEYS=Owner,Idx");

The cell is displayed like this:
5e90403071c18784242252.jpeg
How to get rid of the slash?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
taylor96, 2020-04-10
@taylor96

Problem solved
Changed the format to

CSVFormat csvFormat = CSVFormat.DEFAULT.withEscape('.').withQuoteMode(QuoteMode.NONE);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question