From 40aa8ab79e54a74953e4834138d9875bb9a2a29c Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Mon, 6 Feb 2023 11:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD=EF=BC=9Atxt?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88=E4=B9=B1=E7=A0=81=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Areas/LR_SystemModule/Controllers/AnnexesController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs index f82ee1ab0..65cb4b0ef 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_SystemModule/Controllers/AnnexesController.cs +++ b/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()); }