zoukankan      html  css  js  c++  java
  • ASP.NET DataGrid 导出EXCEL 中文变乱码

       新增一行

    Response.Write("<meta http-equiv=Content-Type content="text/html; charset=UTF-8">");
            Response.Clear();
            Response.Buffer = false;
            Response.Charset = "UTF-8";
            Response.AddHeader("content-disposition", "attachment;filename=GridViewExport.xls");
            Response.ContentEncoding = System.Text.Encoding.GetEncoding("UTF-8");
            //Response.Charset = "";
            Response.ContentType = "application/vnd.ms-excel";
            Response.Write("<meta http-equiv=Content-Type content="text/html; charset=UTF-8">");
  • 相关阅读:
    【程序2】
    【程序1】
    基数排序
    归并排序
    选择排序
    leetcode15
    leetcode221
    leetcode322
    leetcode921
    leetcode922
  • 原文地址:https://www.cnblogs.com/CoreXin/p/13570992.html
Copyright © 2011-2022 走看看