For coding reasons that would be scary to you (I'm very embarrassed), I need to store many text items. In the string.
I will demarcate them using a character.
Which of the characters is best to use, which word is likely to appear in at least text? To avoid printable and potentially local issues, the ASCII should be less than 128.
For some embarrassing reasons, assume that I can not use CSV, I would say go with the data. Take some sample data, and calculate a simple character for each value 0-127. Choose one of those that does not arise. Get a bigger data set if you like it too much It will not take much time to write, and you will get the best answer for you.
The answer will be different for different problem domains, therefore. (Pipes) are common in shell scripts, ^ Mathematics is common in sources, and this is probably true for most other characters.
I personally think that I want to go for it (pipe) if given an option but going with real data is the safest
And whatever you Do it, make sure that you have made an escape plan!
Comments
Post a Comment