I would like to take a string like "Bob[TAB]John[TAB]Harry "The Hammer" Jones" and "backslash" encode the string as such:
"Bob\tJohn\tHarry \"The Hammer\" Jones"
So I can read/write single line quoted values to file without the usual suspects like ESC, TAB, newline messing it up but still stored in the string.
a) Is there a "standard" way to do this instead or re-inventing the wheel? b) What "word" am I looking for that describes what I want to do? I feel like this should certainly be a "dup" but I don't know the right term if this is the case. For a URL, this would be URLEncode/Decode, but what is the word for "backslash encode special characters in C"?