public static string StrConvert(string strInput)
        {
            if ((strInput != null) && (strInput != ""))
            {
                string[,] immit ={ { "'", "’" }, { "%20", " " }, { "%24", " " }, { "%27", " " }, { "%3a", " " }, { "%3b", " " }, { "%3c", " " }, { ";", ";" }, { ":", ":" }, { "%", "%" }, { "--", "--" }, { "*", "*" }, { "\\", "、、" } };
                for (int i = 0; i < (immit.Length / 2); i++)
                {
                    strInput = strInput.Replace(immit[i, 0], immit[i, 1]);
                }
            }
            return strInput;
        }__________________________________________________________________________________________________________%20,%24是什么东东?
__________________________________________________________________________________________________________

解决方案 »

  1.   

    我怎么觉得就是字符串  其他意思我就不知道了
      

  2.   

    我知道是一个输入的字符,完了替换一下,想清楚这是什么字符百度上没有查到 ,谷歌也没有查到
      

  3.   

     这就是一个字符串的替换函数    %20,%24表示你输入的字符串中有些字符时,将被替换成空, 其它也类似
      

  4.   

    这就是不用正则带来的低可读性代码范例。