This workaround may better suit your needs. It removes unicode characters from the string and saves only ASCII characters.
byte[] bytes = Encoding.ASCII.GetBytes("eéêëèiïaâäàåcç test"); char[] chars = Encoding.ASCII.GetChars(bytes); string line = new String(chars); line = line.Replace("?", "");
Note that the second "space" in the character input line is char with an ASCII value of 255
source share