c#导出文件,文件名中文乱码解决方法
程序员文章站
2022-06-23 16:39:20
原文链接:https://www.cnblogs.com/ThreeStone007/p/5401341.html ......
public 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://www.cnblogs.com/threestone007/p/5401341.html
上一篇: 三星Galaxy Tab S3迎来神器:S Pen手写笔加持
下一篇: 大东海好玩吗 大东海旅游攻略