1
I have trouble parsing dns txt records retrieved by a script I wrote. The script takes a records, ns records and txt records and writes them to a .csv file. I am using semicolon to separate entries and " as text delimiter.
As txt records contain special characters like ", this leads to parsing errors, when I try to open the .csv file in e.g. spreadsheets.
IN TXT "verification=12345678901234567890"
If there are multiple entries per record, this leads to "
occur within a record and e.g. ""
at the end of entries. Leading to cdn.net."verification=12345678901234567890"";"...
Is there a decent way to prevent such problems inside the script? Using multiple text delimiters seems one solution but also like an ugly hack.
Tell your spreadsheet application to only split on semicolons, and not on commas? – mtak – 2017-11-08T09:22:12.067