我是英文系統,代碼如下,即使我把編碼方式改成GB2312也還是亂碼,怎么解決 response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", strFile)); response.Charset = "utf-8"; response.ContentType = "application/ms-excel"; response.ContentEncoding = System.Text.Encoding.GetEncoding("utf-8"); response.Write(sw); response.Flush(); response.End();
- 2 回答
- 0 關注
- 454 瀏覽
添加回答
舉報
0/150
提交
取消