roskakori / cutplace

validate data stored in CSV, PRN, ODS or Excel files
http://cutplace.readthedocs.org/
GNU Lesser General Public License v3.0
18 stars 20 forks source link

Support for more quote characters #113

Closed michele-deus closed 1 year ago

michele-deus commented 8 years ago

I have a file with a textfield using # as the quote character and as of now I can't validate it. Pandas read_csv is capable of handling it passing option quote_character='#'.

roskakori commented 8 years ago

It wouldn't be a big deal to support any character as quote characters.

If you need a quick workaround, go to cutplace/data.py and edit the following line:

_VALID_QUOTE_CHARACTERS = ["\"", "\'"]
michele-deus commented 8 years ago

Thanks!

roskakori commented 1 year ago

I finally got around to actually implement this.

For the record, the currently supported quote characters are:

!"#$%&'*+-/:;=?\^_`~