PHP 엑셀다운로드 시 한글 깨질 경우 정보
PHP 엑셀다운로드 시 한글 깨질 경우
관련링크
            
            http://superb1204.egloos.com/3271374
            1172회 연결
        
            본문
            
            
                        깨질때의 헤더
-
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=$_POST[filename].xls" );
header( "Content-Description: PHP4 Generated Data" );
header( "Content-charset=euc-kr" );
-
수정한 헤더
-
header( "Content-type: application/vnd.ms-excel; charset=euc-kr" );
header( "Content-Disposition: attachment; filename=$_POST[filename].xls" );
header( "Content-Description: PHP4 Generated Data" );
print("<meta http-equiv=\"Content-Type\" content=\"application/vnd.ms-excel; charset=euc-kr\">");
-
이제 안깨진다.
원본글 출처: superb1204.egloos.com/3271374
                
                
                -
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=$_POST[filename].xls" );
header( "Content-Description: PHP4 Generated Data" );
header( "Content-charset=euc-kr" );
-
수정한 헤더
-
header( "Content-type: application/vnd.ms-excel; charset=euc-kr" );
header( "Content-Disposition: attachment; filename=$_POST[filename].xls" );
header( "Content-Description: PHP4 Generated Data" );
print("<meta http-equiv=\"Content-Type\" content=\"application/vnd.ms-excel; charset=euc-kr\">");
-
이제 안깨진다.
원본글 출처: superb1204.egloos.com/3271374
                        
                추천
                
4
                
    4
댓글 0개