Menu

#158 CsvBindByName capitalizes headers when writing

open
nobody
None
5
22 hours ago
2023-03-08
Diego
No

Hey, I'm facing quite a problem here because writing a CSV does not preserve capitalization on annotated columns. For instance, having @CsvBindByName(column = "Example") generates the header EXAMPLE. Is there a logical reason for this behaviour? Honestly, I can't see why. Would not be much easier to preserve capitalization by default?

Discussion

  • Diego

    Diego - 2023-03-08

    I guess a new boolean property capitalize could be added to the annotation, or something similar...

     
  • Andrew Rucker Jones

    @sconway This one is really directed at you. The all-caps thing was there when I arrived, and I recall you having a reason for it.

     
  • seprfu

    seprfu - 22 hours ago

    Any updates on that?

    This is a library, whatever reasoning the original developer had, it shouldn't act as a policeman and enforce its own rules. It should be flexible. There are many dirty workarounds for this issue on the internet because this is what users need.

     

Log in to post a comment.