I have a string value with garbage and can not strip out the bad (or I believe null) characters.
The string looks like this:
"XYZ Corporation\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
I believe these are escape sequences showing null values. I tried TrimEnd, Replace, Trim, etc. and can not find a way to strip out all of the "\0" occurrences.
Any idea what I can do? It's driving me nuts.
Elementary C# Question
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
milind khire33 pointsPosted Oct 3, 2006, 5:59 AM EDT
savan gandhi45 pointsPosted Oct 20, 2006, 1:54 AM EDT