摘要: 最近在编写一个读取网站内容的小东西,在网上一搜很多,但是在拿过来用时不太理想,有些内容读取还是出现乱码问题。于是我在loafinweb 这位兄弟代码的基础上做了一些小的调整,以达到个人需求,如有不对之处还请loafinweb 见谅。1、获取编码片段:把 string html = reader.ReadToEnd();改写成 while ((temp = reader.ReadLine()) != null) { htmlBuilder.Append(temp); html = htmlBuilder.ToString(); if (html.IndexOf("chars... 阅读全文
posted @ 2012-01-31 15:24 peak 阅读(579) 评论(0) 推荐(0) 编辑