I solved that problem using the String To json function in the json unit..
With that you can use any value character below 32 and have it part of the string without the tstringlist getting confused.
What it does is uses C style strings escape characters so you can have any value in there and it is still human readable.
That can also be done with
UTF8EscapeControlChars(), from LazUTF8 (LazUtils package) and coding a couple of simple-minded
Escape() /
Unescape() isn't too difficult either: one just pass the string through a loop doing
StringReplace's
But
totya is right that the standard TStringList isn't the
panacea most people think, and there's nothing wrong in trying to code one's own equivalent.