case1.

<%@ page contentType="application/vnd.ms-excel; name='recovery_Excel'; charset=EUC-KR"%>

<%

String f_nm=usrnm+"_출전업체정보";
 response.setHeader("Content-Disposition", "attachment; filename="+new String((f_nm).getBytes("KSC5601"),"8859_1")+".xls");  

String((f_nm).getBytes("EUC-KR"),"8859_1")+".xls");   190924수정내용
 response.setHeader("Content-Description", "JSP Generated Data");

%>

<meta http-equiv="Content-Type" content="application/vnd.ms-excel;charset=euc-kr">

 

수정2차

case1. 방법은 톰켓에서는 문제없이 적용됨



출처: https://gogh914.tistory.com/69 [Notebook Of Gogh]

 

case2.

 

<%@ page import="java.net.URLEncoder"%>


 response.setHeader("Content-Disposition", "attachment; filename="+URLEncoder.encode(f_nm, "UTF-8")+".xls");  
 response.setHeader("Content-Description", "JSP Generated Data"); 

 

case1. 방법은 제우스was에서 문제없이 적용됨.

+ Recent posts