摘要: 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 阅读全文
posted @ 2013-12-11 13:12 DR19 阅读(441) 评论(0) 推荐(0) 编辑