本帖最后由 shi02fg 于 2012-04-23 01:10:13 编辑

解决方案 »

  1.   

    控件,,用 html to pdf
      

  2.   

    <meta http-equiv="content-type" content="text/html;charset=utf-8">
      

  3.   

    百度、新浪这些网站用的编码方式都是gb2312的,不是utf-8的
      

  4.   

    网页的中文一般情况下 要么是gb2312  要么是utf-8如果gb2312  出现乱码请写成utf-8
    反过来也是。
      

  5.   

    将编码换成gb2312 或者
     utf-8
      

  6.   

    <meta http-equiv="content-type" content="text/html;charset=gb2312">
      

  7.   


                    string html = "";
                    HttpWebRequest hWebRequest = (HttpWebRequest)WebRequest.Create(uri);
                    WebResponse Response = hWebRequest.GetResponse();
                    HttpWebResponse wr = (HttpWebResponse)hWebRequest.GetResponse();
                    StreamReader sr = new StreamReader(Response.GetResponseStream(),Encoding.GetEncoding("UTF-8"));//这里设置编码
                    html = sr.ReadToEnd();
      

  8.   

    设置格式为 "UTF-8" 是正解,但是很奇怪,baidu 搜索的页面似乎是采用了不同的编码方法,不同词对应着不同的编码方法
      

  9.   

    在他是参数里有  ie=gb2312   oe=gb2312  则 编码为gb2312
    默认为utf-8