瀏覽代碼

【修改】修改上传功能:txt文件预览乱码;

新疆警官学校中职
dyy 1 年之前
父節點
當前提交
40aa8ab79e
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs 查看文件

@@ -270,7 +270,8 @@ namespace Learun.Application.Web.Areas.LR_SystemModule.Controllers
Response.ContentType = "application/pdf";
break;
}
Response.Charset = "GB2312";
//Response.Charset = "GB2312";
Response.Charset = "utf-8"; //修改txt文件预览乱码
Response.WriteFile(filepath);
//Response.BinaryWrite(ms.ToArray());
}


Loading…
取消
儲存