Pārlūkot izejas kodu

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

新疆警官学校中职
dyy pirms 1 gada
vecāks
revīzija
40aa8ab79e
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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());
}


Notiek ielāde…
Atcelt
Saglabāt