I have an asp.net mvc app and users are cutting and pasting data into textarea fields. We are getting some characters in there that my IBM U2 database does not like. How can I strip all of these out of the textarea before sending them to my database.
The problems yesterday were with the en dash and em dash. Today I'm having a problem with another character which I believe is a hex 1F.
Here is the code I added, but I think I need something to account for all bad characters.
Problem = result["notes"].Replace("\u2013", "-").Replace("\u2014", "-");
Any suggestions.