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
I would like to suggest to add a feature flag to CsvGenerator, which, if enabled, would cause any string values that contain leading or trailing white space to always be quoted.
Some CSV parsers out there do not handle leading/trailing spaces very well, if unquoted. If Jackson needs to produce CSV for consumption by one of those parsers, currently it would have to resort to force quoting of all strings, which may be undesirable for a number of reasons.
The text was updated successfully, but these errors were encountered:
@sfzhi Thank you -- it does sound like there should be a way to force quoting, then; and if not done by default at this point, probably needs to be a new feature (if so, needs to go in 2.12.0).
I would like to suggest to add a feature flag to CsvGenerator, which, if enabled, would cause any string values that contain leading or trailing white space to always be quoted.
Some CSV parsers out there do not handle leading/trailing spaces very well, if unquoted. If Jackson needs to produce CSV for consumption by one of those parsers, currently it would have to resort to force quoting of all strings, which may be undesirable for a number of reasons.
The text was updated successfully, but these errors were encountered: