[제나플러스] UTF-8 페이지에서 한글링크깨짐 문제
본문
lib/common.lib.php
// 메타태그를 이용한 URL 이동
// header("location:URL") 을 대체
function goto_url($url)
{
/*
if (preg_match("/MSIE/", $_SERVER[HTTP_USER_AGENT]))
echo "<meta http-equiv='Refresh' content='0;url=$url'>";
else
echo "<script language='JavaScript'> document.location.href = '$url'; </script>";
*/
//header("Location:$url");
//flush();
//if (!headers_sent())
// header("Location:$url");
//else
//echo "<script language='JavaScript'> document.location.href = '$url'; </script>";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script language='JavaScript'> location.replace('$url'); </script>";
exit;
}
// 메타태그를 이용한 URL 이동
// header("location:URL") 을 대체
function goto_url($url)
{
/*
if (preg_match("/MSIE/", $_SERVER[HTTP_USER_AGENT]))
echo "<meta http-equiv='Refresh' content='0;url=$url'>";
else
echo "<script language='JavaScript'> document.location.href = '$url'; </script>";
*/
//header("Location:$url");
//flush();
//if (!headers_sent())
// header("Location:$url");
//else
//echo "<script language='JavaScript'> document.location.href = '$url'; </script>";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset=$g4[charset]\">";
echo "<script language='JavaScript'> location.replace('$url'); </script>";
exit;
}
추천0
댓글목록 0
등록된 댓글이 없습니다.