dashbitco / nimble_csv

A simple and fast CSV parsing and dumping library for Elixir
https://hexdocs.pm/nimble_csv
767 stars 51 forks source link

Support no escape character #38

Closed TheFirstAvenger closed 5 years ago

TheFirstAvenger commented 5 years ago

Setting escape: nil results in compilation errors.

josevalim commented 5 years ago

Can you please provide more information? Why do you need this feature? What is the sample file you are trying to parse or decode? Thank you.

TheFirstAvenger commented 5 years ago

In our case, we have a pipe separated file and we currently don't know if there is an escape character, but most likely there isn't.

josevalim commented 5 years ago

@TheFirstAvenger so my recommendation is just to set the escape character to something you know won't happen in your input, such as the null byte "\0". However, if you don't use escape characters, you probaby don't need this lib either, as your parser is simply a call to String.split(line, "|").