浏览代码

【修改】修改上传功能: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());
}


正在加载...
取消
保存