alert 창에서 한글이 깨지는경우 정보
alert 창에서 한글이 깨지는경우본문
lib/common.lib.php 파일중
function alert($msg='', $url='')
와
function alert_close($msg)
위 두줄을 찾아서 아래쪽에
$msg = iconv("UTF-8", "EUC-KR", $msg);
위 소스를 넣어주세요
function alert($msg='', $url='')
{
global $g4;
$msg = iconv("UTF-8", "EUC-KR", $msg);
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
//header("Content-Type: text/html; charset=$g4[charset]");
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script type='text/javascript'>alert('$msg');";
if (!$url)
echo "history.go(-1);";
echo "</script>";
if ($url)
// 4.06.00 : 불여우의 경우 아래의 코드를 제대로 인식하지 못함
//echo "<meta http-equiv='refresh' content='0;url=$url'>";
goto_url($url);
exit;
}
추천
0
0
댓글 1개
저의경우 사정이 생겨 euc-kr 서버에 utf-8 버전을 설치했는데 잘되네요..
혹시 제가 체크하지 못한 문제점이 있을까요?
혹시 제가 체크하지 못한 문제점이 있을까요?