标签:substring get ons use col 文件 msi string coder
String oldname = file.getName().substring(file.getName().indexOf("_")+1); String encodefileName = request.getHeader ( "user-agent" ).contains ( "MSIE" ) ? ("="+URLEncoder.encode ( oldfilename, "utf-8") ):("*=utf-8‘‘"+ URLEncoder.encode ( oldfilename, "utf-8") ); response.setHeader ( "Content-disposition", "attachment; filename" + encodefileName);
标签:substring get ons use col 文件 msi string coder
原文地址:https://www.cnblogs.com/loveMis/p/10412780.html