I am receive a string of data from an API where all special characters are represented as there ASCII values. What is the best, in terms of speed and accuracy, way to detect and replace these?
Source String:
"Could not find 'Some User' are you sure this user is valid?"
Desired Result:
"Could not find 'Some User' are you sure this user is valid?"
I am currently using the string replace function, but that will look very ugly if I have to do it for every single special character.
string correctedErrorMessage = originalErrorMessage.Replace("'", "'").Replace("?","?");