I want to replace certain characters in an input string with other characters.
The input text has Microsoft left and right smart quotes which I would like to convert to just a single ".
I was planning on using the Replace operation, but am having trouble forming the text string to be searched for.
I would like to replace the input sequence (in hex) \xE2809C, and change that sequence to just a single ". Ditto with \xE2809D.
How do I form the string to use in the Replace operation?
I'm thinking of something like (in a loop):
tempTxt = tempTxt.Replace(charsToRemove[i], charsToSubstitute[i]);
but I'm having trouble creating the charsToRemove array.
Maybe a bigger question is whether the whole input file can be read and converted to plain ASCII using some read/write and string conversions in C#.
Thanks, Mike