You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Short answer is that CsvEncoder, by default, uses fast heuristics to determine if quoting is or may be needed: 24 happens to be the limit defined as CsvEncoder.MAX_QUOTE_CHECK. I am not sure this is documented in README; PRs are welcome for changes to improve explanations.
There are settings to change this behavior:
CsvGenerator.Feature.STRICT_CHECK_FOR_QUOTING (default: false) -- if enabled, check will be performed using full String value, no matter the length
CsvGenerator.Feature.ALWAYS_QUOTE_STRINGS (default: false) -- if enabled, no checks are performance and quoting is always applied.
I'd like to know why
jackson-dataformat-csv
:<25
(<=24
)>=25
Probably it is documented somewhere. If anyone knows, please let me know.
Thanks.
Sample code
The text was updated successfully, but these errors were encountered: