c

글씨 깨짐 오류ㅠ ㅠ

http://sir.co.kr/bbs/board.php?bo_table=g4_skin&wr_id=137634&page=1&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%ED%8C%9D%EC%97%85+%EA%B4%80%EB%A6%AC&spt=0&page=1&cwin=#c_150010

위의 스킨 사용했는데요..
팝업이 뜨면 한글이 깨지네요..

popup_view.php의 head에
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
이걸 추가햇는데도 ㅠㅠ 수정이 안되요ㅜㅜ

* 파일자체를 utf-8로 저장해보라고도 하셔서 그렇게 저장했는데도 깨져서나오네요ㅠㅠ
팝업 띄울때 레이어랑 새창으로 띄우는 방법 선택하는게 있는데 새창으로 띄울 땐 한글이 잘 나와요ㅠㅠ
레이어팝업일 경우만 한글이 나오지 않네요ㅠㅠ

<?
header('P3P: CP="NOI CURa ADMa DEVa TAIa OUR DELa BUS IND PHY ONL UNI COM NAV INT DEM PRE"');
if($mode=="check")
{

$gigan_time=time() + $gigan*86400;

setcookie("cookie_$no","Y",$gigan_time,"/");

echo "<script>
self.close();
</script>";
exit;

}


include_once("./_common.php");
///팝업테이블명



$sql="select * from {$g4[site_popup_table]} where no=$no ";

$result=mysql_query($sql);
$row=mysql_fetch_array($result);

$title=stripslashes($row[title]);
$check_input=$row[check_input];

$content=stripslashes($row[content]);




$img_file=$row[img_file];
$img_url=$row[img_url];
$gigan=$row[gigan];

switch($gigan)
{
case '1':
$gigan_text="하루동안 보이지 않습니다";
break;
case '2':
$gigan_text="이틀동안 보이지 않습니다";
break;

case '3':
$gigan_text="사흘동안 보이지 않습니다";
break;

case '7':
$gigan_text="일주일동안 보이지 않습니다";
break;

case '15':
$gigan_text="보름동안 보이지 않습니다";
break;

case '0':
$gigan_text="다음에 보이지 않습니다.";
break;

default:
$gigan_text="하루동안 보이지 않습니다";
break;
}


//----이미지파일을 너비/높이로.변경....
if($row[check_input]=="IMG" && $row[img_file]){

$size=GetImageSize($g4[path]."/popup_img/".$row[img_file]);
$width=$size[0];
$height=$size[1];
}else{
$width=$row[width];
$height=$row[height];

}

if($img_url){
$a_img_start="<a href='{$img_url}' target=_blank>";
$a_img_end="</a>";
}else{
$a_img_start="";
$a_img_end="";
}



?>
<html lang="ko">
<head>
<title><?=$title?></title>
<style type='text/css'>
TABLE {font-size:12px;}
.font_11{font-size:11px;font-family:돋움}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body topmargin=0 leftmargin=0>
<form name="form1" action="<?=$PHP_SELF?>" method=post>
<input type=hidden name='mode' value='check'>
<input type=hidden name='no' value='<?=$no?>'>
<?if($check_input=="TEXT") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=100% >
<tr>
<td valign=top height=100%><?=$content?></td>
</tr>
<? }//컨텐츠 끝?>
<?if($check_input=="IMG") {
?>
<table border=0 cellpadding=0 cellspacing=0 width=<?=$width?> height=100% >
<tr>
<td align=center valign=top height=100%><?=$a_img_start?><img src="<?=$g4[path]?>/popup_img/<?=$img_file?>" border=0><?=$a_img_end?></td>
</tr>
<? }//이미지 끝?>

<tr>
<td height=30 bgcolor=#000000 valign=middle>
<font color=#FFFFFF class='font_11'>&nbsp;&nbsp;<?=$gigan_text?></font>&nbsp;
<input type=checkbox name="gigan" value="<?=$gigan?>"
onclick="javascript:form1.submit()">
</td>
</tr>
</form>
</table>
</body>
</html>
|

댓글 8개

변환프로그램 게시판에서 언어셋 변경 프로그램으로 변환해보세요.
저스킨은 utf-8용이고

질문자님의 사이트와 그누보드 또한 utf-8이여야 정상입니다.
utf-8로 되어있구요.. 새창으로 띄웠을땐 제대로 나오고, 팝업이 없을 경우에도 제대로 나옵니다..
근데 레이어 팝업으로 띄웠을때만 깨져나오네요ㅠㅠ 그이유를 모르겠어요..ㅜㅜ
사이트주소를알려주세요
호스팅 언어셋
그누보드 언어셋 모두 동일한건가요?
테스트주소 쪽지보냈습니다ㅠㅠ
그런데 또 확인해보면 익스에서는 한글이 제대로 나옵니다ㅠㅠ
잘보이는데요~ㄷㄷ
어떤 환경에서 안되신다는건가요?
크롬에서 안나와서요ㅠㅠ
인코딩 변환이 안되어있으신것같습니다.
인코딩 변환 전부 했는데...... 어디가 안되어있는건지는 제가 확인해볼 수 없는건가요?
팝업에 관련된 php파일은 meta태그도 인코딩도 모두 utf-8로 맞췄거든요 ㅠㅠ

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고