PHP 엑셀다운로드 시 한글 깨질 경우 > 업계소식

본문 바로가기

사이트 내 전체검색

업계소식

PHP 엑셀다운로드 시 한글 깨질 경우

페이지 정보

작성자 관리자 작성일 14-03-04 19:20 조회 2,646회 댓글 0건

본문

깨질때의 헤더

-

 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\">");

-



[이 게시물은 관리자님에 의해 2014-03-05 05:08:32 새소식에서 복사 됨]

댓글목록

등록된 댓글이 없습니다.

Copyright © rncable. All rights reserved.