1.
private static string ConvertExtendedAscii(string html) { StringBuilder sb = new StringBuilder(); foreach (var c in html) { int charInt = Convert.ToInt32(c); if (charInt > 127) sb.AppendFormat(“&#{0};”, charInt); else sb.Append(c); } return sb.ToString(); }
2.引用XNA框架
StreamReader reader = new StreamReader(TitleContainer.OpenStream(“731999031.htm”), Encoding.GetEncoding(“unicode”));