index 페이지에서 최근게시물 한글깨짐문제 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

index 페이지에서 최근게시물 한글깨짐문제 정보

index 페이지에서 최근게시물 한글깨짐문제

본문

제목대로 최근게시물에서 한글이 깨지는 현상입니다.
검색을 했더니 비슷한 질문에 대한 답변은 찾을수 있었지만 저에게는 해당되지 않는거
같습니다.
 
 
간단히 해결 될거 같기는 한데...역시 모르면 맘만 답답해지는거 같습니다.
 
답을 주시는 분에게 포인트 1,000점을 드리겠습니다..도움이 될런지..ㅡ.ㅡ;;
 
소스는...
 
<?
 $g4_path = ".";       
 include_once("$g4_path/_common.php");
 include_once("$g4[path]/lib/latest.lib.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>▒▒▒▒▒ 유진방염에 오신것을 환영합니다 ▒▒▒▒▒</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<link href="css/style.css" rel="stylesheet" type="text/css">
<SCRIPT language=JavaScript>
function CaricaFoto(img){
foto1= new Image();
foto1.src=(img);
Controlla(img);
}
function Controlla(img){
if((foto1.width!=0)&&(foto1.height!=0)){
viewFoto(img);
}
else{
funzione="Controlla('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}

function viewFoto(img){
largh=foto1.width+20;
altez=foto1.height+20;
stringa="width="+largh+",height="+altez;
finestra=window.open(img,"",stringa);
}
</SCRIPT>
</head>
<body bgcolor="F5F5F5" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<? include_once $_SERVER["DOCUMENT_ROOT"]."/template/top.php"; ?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="890" valign="top" background="template/img/ri_im_bg01.gif" bgcolor="#FFFFFF">
      <table width="890" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="450" height="539" valign="top" background="img/ma_im_bg01.jpg"><script src="/js/flash.js" language="javascript"></script>
           <script>flash_contents('/flash/main.swf','450','539');</script></td>
          <td width="440" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/img/title_im_news01.gif" width="440" height="39" border="0" usemap="#news"></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td height="72" valign="top"><?=latest("latest_aqua", "news", 4, 35);?></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><img src="/img/title_im_result02.gif" width="440" height="42" border="0" usemap="#result"></td>
              </tr>
              <tr>
                <td height="5"></td>
              </tr>
              <tr>
                <td height="72" valign="top"><?=latest("latest_aqua", "results", 4, 35);?></td>
              </tr>
              <tr>
                <td> </td>
              </tr>
              <tr>
                <td><img src="img/ma_im_dotline01.gif" width="440" height="9"></td>
              </tr>
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><a href="/business/business03-1.php"><img src="/img/ma_bu_menu01.gif" width="108" height="95" border="0"></a></td>
                      <td><a href="/bboard/bbs/board.php?bo_table=consult"><img src="/img/ma_bu_menu02.gif" width="148" height="95" border="0"></a></td>
                      <td><a href="/business/business03-2.php"><img src="/img/ma_bu_menu03.gif" width="184" height="95" border="0"></a></td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td height="7"></td>
              </tr>
              <tr>
                <td><img src="img/ma_im_enter01.gif" width="439" height="33" border="0" usemap="#iso9001"></td>
              </tr>
              <tr>
                <td height="7">
                </td>
              </tr>
              <tr>
                <td><img src="img/ma_im_bg02.jpg" width="440" height="117"></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
    <td valign="bottom" background="template/img/ri_im_bg01.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="114" background="template/img/ri_im_bg02.jpg"> </td>
        </tr>
      </table></td>
  </tr>
</table>
<? include_once $_SERVER["DOCUMENT_ROOT"]."/template/bottom.php"; ?>
<map name="news" id="news">
  <area shape="rect" coords="385,14,436,33" href="/bboard/bbs/board.php?bo_table=news">
</map>
<map name="result" id="result">
  <area shape="rect" coords="382,16,436,35" href="/bboard/bbs/board.php?bo_table=protfolio1">
</map>
</body>
</html>
  • 복사

댓글 전체

사이트 메타 보니까 euc-kr 이군요. 혹시 최신글 스킨에서 euc-kr 로 되였는지 확인하세요. 가능하게 최신글 스킨에서 코드가 utf-8로 될 가능성이 있어보입니다.
빠른답변 감사드립니다.
알려주신대로 최근글스킨에서 euc-kr로 수정후 확인을 해보았는데...
문제의 한글깨짐은 계속 남아있는거 같습니다...ㅜ.ㅜ

수정이전 소스
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>

<table width=430 height="17" border=0 cellpadding=0 cellspacing=0>
  <? for ($i=0; $i<count($list); $i++) { ?>
  <tr height=23>
    <td width="20" height="17" style="padding-left:35px"><img src=<?=$latest_skin_path?>/img/latest_icon.gif width="7" height="7" align="absmiddle"></td>
    <td height="17" ><font style='vertical-align:-4px;color=#666666;'>
      <?
echo $list[$i][icon_reply] . " ";
echo "<a href='{$list[$i][href]}'>";

if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:돋움; font-size:8pt; color:#999999;'>{$list[$i][comment_cnt]}</span></a>";

if ($list[$i][is_notice])
echo "<font style='font-family:돋움; font-size:9pt; color:#009999;'>{$list[$i][subject]}&nbsp;</font>";
else
echo "<font style='font-family:돋움; font-size:9pt; color:#999999;'>{$list[$i][subject]}&nbsp;</font>";

echo "</a>";

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

echo " " . $list[$i][icon_new];
echo " " . $list[$i][icon_file];
echo " " . $list[$i][icon_link];
echo " " . $list[$i][icon_hot];
echo " " . $list[$i][icon_secret];
?>
    </font> </td>
    <td width="83" height="17"><font style='vertical-align:-4px;color=#65949B;'>
      <?
echo " " . $list[$i][datetime];
?>
    </font> </td>
  </tr>
  <? } ?>
</table>
마지막으로

<title>▒▒▒▒▒ 유진방염에 오신것을 환영합니다 ▒▒▒▒▒</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">

이걸 순서 바꾸어보세요.

<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<title>▒▒▒▒▒ 유진방염에 오신것을 환영합니다 ▒▒▒▒▒</title>

이렇게요.
진하오님 답변주신것 감사드립니다.
곰곰히 생각해보니 첨부터 잘못했던거 같네요..
그누보드를 다운받을때부터 utf-8로 받았던것입니다...이궁..
그래서 db부분과 그누보드를 모두 지우고 새로 깔았더니 제대로 되는거 같습니다.
아무튼 관심에 대한 감사로 답변채택을 해놓겠습니다.
감사합니다.
© SIRSOFT
현재 페이지 제일 처음으로