您需要通过在字符前加上\来对其进行转义: myString=myString.Replace("\""," "); 或者使用这个: myString=myString.Replace('"',' ');
string.Replace('"', ' ')
。 - Oded