Sfoglia il codice sorgente

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

新疆警官学校中职
dyy 1 anno fa
parent
commit
40aa8ab79e
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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 Vedi File

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


Caricamento…
Annulla
Salva