logoalt Hacker News

ptxtoday at 12:40 PM2 repliesview on HN

What happens when the data contains the record or field separator characters?

I suppose you could document that it's unsupported, and just drop or reject such values, but then the system couldn't be used to handle test data for such systems, for example.


Replies

EvanAndersontoday at 12:51 PM

In the case of this system (a quasi-EDI interface used to move records from a fleet fueling point-of-sale system to the ERP software) those characters were forbidden by the source application. My code would have exploded in a fireball if they had been present, but the specification said they couldn't be.

bobmcnamaratoday at 3:04 PM

Easy - don't