Hi,
I see, Wikipedia https://en.wikipedia.org/wiki/Comma-separated_values
writes:
In some CSV implementations, leading and trailing spaces and tabs are
trimmed. This practice is controversial, and does not accord with RFC 4180,
which states "Spaces are considered part of a field and should not be
ignored.".
But right below that:
According to RFC 4180, spaces outside quotes in a field are not allowed
I think a "human parser" would trim spaces unless they are quoted.
Regards,
Thomas
On Tuesday, August 4, 2015, Sylvain Pointeau <[email protected]>
wrote:
> On Tue, Aug 4, 2015 at 11:05 AM, Sylvain Pointeau <
> [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>
>>
>> On Tue, Aug 4, 2015 at 10:47 AM, Noel Grandin <[email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>>
>>> Yeah, we're sorry, but everybody __feels__ like CSVREAD should match
>>> their particular use-case, when the reality is that CSV is simply not a
>>> robustly specified standard.
>>
>>
>> CSVREAD matches my use case, my problem is solved with the option
>> preserveWhitespace=true,
>> so H2 made a great job, no doubt about it.
>>
>> However I always prefer the approach of not changing the data except if I
>> wish to via a setting, instead as the opposite.
>>
>
> CSV format is specified there: https://tools.ietf.org/html/rfc4180
>
> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.