导出的页面是乱码.. 而右键点记事本打开 又完全是好的 这的怎么回事那?
     DataSet ds = TestBL.CreatePaperBySelectPaper(SiteInfo.WebSiteID.ToString(), this.Master.UserID.ToString(), hidExportPaperID.Value);
        DataTable dtPaperPartInfo = ds.Tables[1];
        DataTable dtQuestionTitle = ds.Tables[2];
        DataTable dtChoiceItems = ds.Tables[3];
        if (dtQuestionTitle.Rows.Count > 0)
        {
            StringBuilder strN = new StringBuilder();
            strN.Append("<html>");
            strN.Append("<head style=\"font-size:10px;\">");
            strN.Append("</head>");
            strN.Append("<body style=\"text-align:left;\">");
            int paperScore = 0;
            strN.Append("<div style=\"line-height: 30px; border: solid 1px #f16911;position: absolute; display: none; top: 10px;padding-left:10px; overflow: hidden; width: 968px;background: #CCC4A9;\">");
            strN.Append("<div class=\"AligntoLeft Width500\">");
            strN.AppendFormat("<label class=\"Bold TextColorDark\">{0}</label>", ds.Tables[0].Rows[0]["fPaperName"]);
            strN.Append("<span>");
            strN.AppendFormat("<label>(" + Master.getXmlResourceName("ceshicengci") + ":{0}</label>", ds.Tables[0].Rows[0]["fExerciseLevelName"]);            StringBuilder sbContent = new StringBuilder();
            bool isWithReference = hidExportType.Value == "1" ? true : false;
            foreach (DataRow dr in dtPaperPartInfo.Rows)
            {
                int partScore = 0;
                string childHTML = GetAllPaperChildHTML(dr["fPolicyGroupID"].ToString(), ref dtQuestionTitle, ref dtChoiceItems, "0", ref partScore, isWithReference);
                sbContent.Append("<div class=\"HideOverflow GridContainer MT10\">");
                sbContent.AppendFormat("<div class=\"MainTitle\" style=\"text-indent:10px;\">{0}{1}</div>", dr["fTitle"], partScore == 0 ? string.Empty : string.Format("<label class=\"TextColorGray ML5\"> </label>", partScore >= 0 ? string.Format("({0}分)", partScore) : string.Empty));
                sbContent.Append(childHTML);
                sbContent.Append("</div>");
                paperScore += partScore;
            }
            strN.AppendFormat("<label>" + Master.getXmlResourceName("zongfen_ceshishichang_fenzhong") + "</label>)</span></div></div>", paperScore, ds.Tables[0].Rows[0]["fTimeLimit"]);
            strN.Append(sbContent);
            strN.Append("</body></html>");            Response.Clear();
            Response.Buffer = true;
            Response.Charset = "GB2312";
            Response.AppendHeader("Content-Disposition", "attachment;filename=" + Server.UrlEncode(string.Format("{0}{1}", ds.Tables[0].Rows[0]["fPaperName"], isWithReference ? Master.getXmlResourceName("daidaan") : string.Empty)) + ".doc");
            Response.ContentEncoding = Encoding.UTF8;
            Response.ContentType = "application/ms-word";
            System.IO.StringWriter ostring = new System.IO.StringWriter(strN);
           //System.Web.UI.HtmlTextWriter othtml = new HtmlTextWriter(ostring);
            Response.Write(ostring.ToString());
            Response.End();
        }