日期:2014-05-18 浏览次数:20971 次
private static string ConvertExtendedASCII(string HTML) { string retVal = ""; char[] s = HTML.ToCharArray(); foreach (char c in s) { if (Convert.ToInt32(c) > 127) retVal += "&#" + Convert.ToInt32(c) + ";"; else retVal += c; } return retVal; }
------解决方案--------------------
asp.net 用text.utf8decoder()转换一下编码
------解决方案--------------------
字段前加 N
------解决方案--------------------