在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
笔录 /// <summary> /// 解决IE文件名乱码方法 /// </summary> /// <param name="fileName">文件名</param> /// <returns></returns> public static string clFielName(string fileName) { System.Web.HttpContext curContext = System.Web.HttpContext.Current; string outputFileName = null; string browser = curContext.Request.UserAgent.ToUpper(); if (browser.Contains("MS") == true && browser.Contains("IE") == true) { outputFileName = System.Web.HttpUtility.UrlEncode(fileName); } else if (browser.Contains("FIREFOX") == true) { outputFileName = "\"" + fileName + "\""; } else { outputFileName = System.Web.HttpUtility.UrlEncode(fileName); } return outputFileName; }
转载: https://blog.csdn.net/u014353113/article/details/84784680 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论