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

본문 바로가기

php

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

작성일 19-05-22 11:41

페이지 정보

작성자서방님 조회 161회 댓글 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\">");


-


이제 안깨진다.

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기