#16 DEFAULT_LINE_END uses platform encoding

closed
nobody
None
5
2011-06-14
2011-06-08
Anonymous
No

The JavaDoc about the DEFAULT_LINE_END const in the CSVWriter class states, that the line end terminator uses platform encoding. I expected it to be be "\n" on Linux, "\r\n" on Windows, and "\r" on Mac, just as the system property would return. But its always "\n". Maybe I'm just misunderstanding the meaning of platform encoding.

Thank you in advance!

Discussion

  • Scott Conway
    Scott Conway
    2011-06-14

    OpenCSV does not determine your platform. If you are using something other than Unix you can change the line feed character by using the appropriate CSVWriter constructor.

    :)

     
  • Scott Conway
    Scott Conway
    2011-06-14

    • status: open --> closed