Menu

#5 Add support of no escape character usage

closed
nobody
None
5
2011-03-02
2010-04-08
Anonymous
No

All the CSVReader options include the default escape character. In this case it is \. I specifically have data that must include this in the string due to UTF format specifications in the credit card industry. The only way to not modify the existing code on my own is for me to suppliment the default escape character with one of the other available values of CSVParser. This allows me to retain forward updating of OpenCSV without having to manipulate the code each time around. I can use default quote character. However, this then means that anytime I have to have the " in a string to pull in, it would be treated as an escape character and thus removed. I have tested with input such as "test",test"test that results in test, testtest. So this only takes out imbeded quotes as a result just as it would have with imbedded \ by default. However, I don't want it to take anything out. I prefere to not set a value for this so nothing is removed. If this is already possible with existing code, an example would be appreciated. I found two related issues outstanding for which both were closed with no indication as to why.

Discussion

  • Scott Conway

    Scott Conway - 2010-12-25

    You can pass in a '\0' as an escape character if you do not have an escape character in your file.

    :)

     
  • Scott Conway

    Scott Conway - 2011-03-02
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.