DownloadString and Special Characters
问题 I am trying to find the index of Mauricio in a string that is downloaded from a website using webclient and download string. However, on the website it contains a foreign character, Maurício. So I found elsewhere some code string ToASCII(string s) { return String.Join("", s.Normalize(NormalizationForm.FormD) .Where(c => char.GetUnicodeCategory(c) != UnicodeCategory.NonSpacingMark)); } that converts foreign characters. I have tested the code and it works. So the problem I have is that when I