utf-8로 변환해서 사용하고 있는데..어려움이 있습니다.. 정보
utf-8로 변환해서 사용하고 있는데..어려움이 있습니다..
관련링크
http://www.zeronara.net
137회 연결
본문
memo_form.php
의 글자 깨짐을 방지 하기 위해
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
이 방식을 써봤는데
비회원일시 글자가 잘나오는데 회원입력시 에러가 발생합니다..
글자 안깨지고 보는 방법 없을까요??
의 글자 깨짐을 방지 하기 위해
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
이 방식을 써봤는데
비회원일시 글자가 잘나오는데 회원입력시 에러가 발생합니다..
글자 안깨지고 보는 방법 없을까요??
댓글 전체
lib/common.lib.php 에서
function alert($msg='', $url='')
{
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
echo "<script language='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;
}
// 경고메세지 출력후 창을 닫음
function alert_close($msg)
{
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
echo "<script language='javascript'> alert('$msg'); window.close(); </script>";
exit;
}
이렇게 해결되는군요~!
Cool님이 알려 주셨습니다~~!
function alert($msg='', $url='')
{
if (!$msg) $msg = '올바른 방법으로 이용해 주십시오.';
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
echo "<script language='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;
}
// 경고메세지 출력후 창을 닫음
function alert_close($msg)
{
echo "<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>";
echo "<script language='javascript'> alert('$msg'); window.close(); </script>";
exit;
}
이렇게 해결되는군요~!
Cool님이 알려 주셨습니다~~!
제로나라에서 제 닉이 Cool 입니다. 아뒤 test
아 그러시구나~~!^^&