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是什么东东?
__________________________________________________________________________________________________________
{
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是什么东东?
__________________________________________________________________________________________________________
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货