response.setCharacterEncoding("utf-8"); response.setHeader("Content-disposition", "attachment;filename=" + new String(fileName.getBytes(), "utf-8")); response.setContentType("application/vnd.ms-excel");
已经按照网上的教程做了如下设置,为什么下载的 excel 还是乱码,求教。 ps:我的数据库和代码都是 utf-8 的