摘要:
1,通过分析Header提取编码。WebRequest webRequest = WebRequest.Create(url);HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();Regex reg_charset = new Regex(@"charset\b\s*=\s*(?[^""]*)") ;WebHeaderCollection headers = webResponse.Headers;string encodingName = string.Empt 阅读全文