poi导出excel中响应头文件名乱码
生活随笔
收集整理的這篇文章主要介紹了
poi导出excel中响应头文件名乱码
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
解決Respone Headers中的content-disposition的fileName為亂碼?
// 處理響應頭response.setHeader("Access-Control-Expose-Headers","Content-Disposition");response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;");response.setCharacterEncoding("UTF-8");response.setHeader("Content-Disposition","attachment;filename=" + URLEncoder.encode(memberName, "UTF-8"));OutputStream outputStream = response.getOutputStream();workbook.write(outputStream);outputStream.flush();outputStream.close();?
總結
以上是生活随笔為你收集整理的poi导出excel中响应头文件名乱码的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: A Scalable Probabili
- 下一篇: ORACLE DataGuard环境搭建