上载excel乱码有关问题

下载excel乱码问题response.setContentType(application/vnd.ms-excel)response.setHeader(Content-Di

下载excel乱码问题
response.setContentType("application/vnd.ms-excel");
               response.setHeader("Content-Disposition", new String(("attachment; filename=" + path).getBytes("GBK"), "ISO-8859-1")+".xls");

这样在下载 和打开excel是都不会出现乱码