e

최신글을 적용했는데latest.skin.php 에 글자 깨지는게 보입니다.

· 2013-10-04 (금) 10:42:35 · 1638 · 3
캡처.PNG
안녕하세요~~^^

그누보드 처음 사용해서 게시판을 적용 중입니다.

최신글 스킨을 받아 메인화면에 적용을 시켰습니다.

공지사항 글은 정상적으로 나오는데. 소스상에는 추가된 문자열이 없는데

깨진 문자가 보입니다.


메인화면 공지사항 부분 html 소스 입니다.


혹시 왜그러신지 아시면 도움 부탁 드립니다...ㅠㅠ^^

-----------------------------------------------------------
<table cellspacing="0" cellpadding="0" height="173" width="340">
<tr>
<td><img src="images/notice_btn.gif" /><img src="images/notice_line.gif" width="186" height="30" /><img src="images/more_btn.gif" width="59" height="30" /></td>
</tr>
<tr>
<td align="left"><? echo latest("xe_latest_01", "yooill_farm_news", 5, 30); ?></td>
</tr>
</table>
-----------------------------------------------------------



last.skin.php의 전체 소스는 아래와 같습니다.

--------------------------------------------------------------

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
<table width='100%' cellpadding='0' cellspacing='0'>
<!--
<tr>
<td width='14'><img src='<?=$latest_skin_path?>/img/xe_latest_left.gif'></td>
<td width='100%' background='<?=$latest_skin_path?>/img/xe_latest_bg.gif' >  <strong><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><?=$board[bo_subject]?></a></strong></td>
<td width=37 background='<?=$latest_skin_path?>/img/xe_latest_bg.gif'><a href='<?=$g4[bbs_path]?>/board.php?bo_table=<?=$bo_table?>'><img src='<?=$latest_skin_path?>/img/xe_latest_right.gif' border='0'></a></td>
</tr>
-->
</table>

<table width='100%' cellpadding='0' cellspacing='0'>
<? for ($i=0; $i<count($list); $i++) { ?>
<tr>
<td colspan='4'>
<table width='98%'>
<tr>
<td height='17' align="left" style='font-size:12px;color:#007727;'><img src='<?=$latest_skin_path?>/img/latest_icon.gif' align=absmiddle>
<?
echo $list[$i]['icon_reply'] . " ";
echo "<a href='{$list[$i]['href']}'>";
if ($list[$i]['is_notice'])
echo "<font style='font-family:돋움; font-size:12px; color:#f26522;'><strong>{$list[$i]['subject']}</strong></font>";
else
echo "<font style='font-family:돋움; font-size:12px; color:#6A6A6A;'>{$list[$i]['subject']}</font>";
echo "</a>";

if ($list[$i]['comment_cnt'])
echo " <a href=\"{$list[$i]['comment_href']}\"><span style='font-family:돋움; font-size:12px; color:#777;'>{$list[$i]['comment_cnt']}</span></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'];
?></td>
<td width='60' align='right' style='font-size:12px;color:#6A6A6A;'><?php echo $list[$i]['datetime']; ?></td></tr>
</table></td>
</tr>
<? } ?>

<? if (count($list) == 0) { ?><tr><td colspan=4 align=center height=50><font color=#6A6A6A>게시물이 없습니다.</a></td></tr><? } ?>

</table>


-------------------------------------------

첨부파일

캡처.PNG (12.6 KB)
1회 2013-10-04 10:42
|

댓글 3개

혹시 인코딩문제 아닐까요?
작업중이신 홈페이지의 언어셋과 최근게시물스킨 언어셋이 달라서 생기는 문제가 아닌가 싶은데요..
utf-8과 euc-kr 중 둘 다 같은지 확인해보시면 안될까요?

만약에 아니면 죄송합니다.^^;;;
댓글 감사합니다~~^^

말씀해주신데로 해보려고 하는데.. 메인페이지의 인코딩은 euc-kr로 설정 되어 있고,
최신글 파일인 latest.skin.php는 인코딩 설정 하는 부분이 어디 있는지 몰라서.. 확인을 못하고 있습니다.

html 파일처럼
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
이걸 추가 해보면 되는건지...;; ㅠㅠ

혹시 아시면 답변 부탁 드립니다.
2013-10-04 (금) 17:36:11
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

둘중 하나 넣어보세요
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

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

+
제목 글쓴이 날짜 조회
13-10-04 조회 1,653
13-10-04 조회 1,098
13-10-04 조회 1,687
13-10-04 조회 2,001
13-10-04 조회 1,645
13-10-04 조회 1,617
13-10-04 조회 1,820
13-10-04 조회 1,335
13-10-04 조회 1,090
13-10-04 조회 1,236
13-10-04 조회 1,727
13-10-04 조회 1,558
13-10-04 조회 1,639
13-10-04 조회 1,006
13-10-04 조회 1,183
13-10-04 조회 1,713
13-10-04 조회 1,201
13-10-04 조회 1,633
13-10-04 조회 1,794
13-10-04 조회 3,013