I could not able to check the invalid semicolon in the code. I unsure how the client is posting the invalid character, due to that the system getting error. I have the invalid semicolon,(;) but I could not able to recreate the invalid semi-column in the editor(code). When trying to paste the invalid semicolon into the editor, it is converting automatically to normal keyboard value(;). So the scope of the invalid semicolon getting ignored in the code The invalid semicolon is only visible in some of the textboxes like gmail,gira
I have tried with following
public string ReplaceInvalidIso8859Characters(string str)
{
var replacements = new Dictionary<string, string>
{
{";", ";"}
};
var newBodyBuilder = new StringBuilder(str);
replacements.ForEach(_ => newBodyBuilder.Replace(_.Key, _.Value));
return newBodyBuilder.ToString();
}