새로운 페이지를 만들었는데.. 한글이 깨집니다. 정보
새로운 페이지를 만들었는데.. 한글이 깨집니다.- odong0.com 홈페이지 자기소개 아이디로 검색 회원게시물
- 2,080
관련링크
본문
영문은 잘되고, 한글만 깨지네요.
새로 만든 페이지만 그렇습니다.
---------------------------------------------------- 새 페이지 소스 -----------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "Anycall PDS";
include_once("./_head.php");
$list_mod = 2; // 한라인에 몇개씩 출력할것인지?
?>
<table width=750 height=100 cellspacing="0" cellpadding="0">
<tr>
<td width=20 background="http://odong0.com/anycalllab/img/mainbg_left.jpg"></td>
<td width=710 background="http://odong0.com/anycalllab/img/bg_501.jpg"></td>
<td width=20 background="http://odong0.com/anycalllab/img/mainbg_right.jpg"></td>
</tr>
</table>
<!-- 여백 --><table><tr><td height=5></td></tr></table>
<a href="http://idisk.paran.com/Default.aspx?wbs=2.1.5&cid=861547" target=_blank>Total PDS</a><br>
테스트
<table width="100%" cellpadding=0 cellspacing=0><tr>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '501' order by bo_table "; //그룹 id 설정
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// tr 바꾸기
if (($i > 0) && ($i % $list_mod == 0))
echo "</tr><tr>";
echo "
<td width=50% valign=top>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td colspan=2>";
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
// 스킨은 입력하지 않을 경우 운영자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
echo latest("basic", $row[bo_table], 5, 50);
echo "</td></tr></table></td>";
}
if ($i > 0 && ($i % $list_mod == 1))
echo "<td width=50% valign=top> </td>";
?>
</td></tr></table>
<?
include_once("./_tail.php");
?>
-----------------------------------------------------------------------------------------------------------------------------------------
어디가 잘못 된걸까요?
새로 만든 페이지만 그렇습니다.
---------------------------------------------------- 새 페이지 소스 -----------------------------------
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4[title] = "Anycall PDS";
include_once("./_head.php");
$list_mod = 2; // 한라인에 몇개씩 출력할것인지?
?>
<table width=750 height=100 cellspacing="0" cellpadding="0">
<tr>
<td width=20 background="http://odong0.com/anycalllab/img/mainbg_left.jpg"></td>
<td width=710 background="http://odong0.com/anycalllab/img/bg_501.jpg"></td>
<td width=20 background="http://odong0.com/anycalllab/img/mainbg_right.jpg"></td>
</tr>
</table>
<!-- 여백 --><table><tr><td height=5></td></tr></table>
<a href="http://idisk.paran.com/Default.aspx?wbs=2.1.5&cid=861547" target=_blank>Total PDS</a><br>
테스트
<table width="100%" cellpadding=0 cellspacing=0><tr>
<?
// 최신글
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '501' order by bo_table "; //그룹 id 설정
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++) {
// tr 바꾸기
if (($i > 0) && ($i % $list_mod == 0))
echo "</tr><tr>";
echo "
<td width=50% valign=top>
<table width=98% cellpadding=0 cellspacing=0 align=center>
<tr>
<td colspan=2>";
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법
// latest(스킨, 게시판아이디, 출력라인, 글자수);
// 스킨은 입력하지 않을 경우 운영자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
echo latest("basic", $row[bo_table], 5, 50);
echo "</td></tr></table></td>";
}
if ($i > 0 && ($i % $list_mod == 1))
echo "<td width=50% valign=top> </td>";
?>
</td></tr></table>
<?
include_once("./_tail.php");
?>
-----------------------------------------------------------------------------------------------------------------------------------------
어디가 잘못 된걸까요?
댓글 전체
한글코드가 달라서 그렇습니다.
euc-kr하고 utf8이 혼합되었네요...
euc-kr하고 utf8이 혼합되었네요...
^.^;; 그럼 어떻게 해야 하나요?
툴마다 조금씩 다릅니다만....
일단 파일을 열고
*메모장 : 파일 -> 다른이름으로저장 -> 인코딩 -> ANSI
*Editplus : 파일 -> 새이름으로 -> 변환기 -> 기본값 선택
*UltraEdit : 파일 -> 새이름으로 -> 서식 -> ANSI/ASCII 선택
위의 세가지중 한가지 방법을 사용하면 됩니다.
(무엇으로 코드를 작성했는지는 모르겠지만,
기본 세팅을 확인하고 유니코드로 저장되지 않도록 바꿔주는게 좋을 듯 합니다. ^^;;)
일단 파일을 열고
*메모장 : 파일 -> 다른이름으로저장 -> 인코딩 -> ANSI
*Editplus : 파일 -> 새이름으로 -> 변환기 -> 기본값 선택
*UltraEdit : 파일 -> 새이름으로 -> 서식 -> ANSI/ASCII 선택
위의 세가지중 한가지 방법을 사용하면 됩니다.
(무엇으로 코드를 작성했는지는 모르겠지만,
기본 세팅을 확인하고 유니코드로 저장되지 않도록 바꿔주는게 좋을 듯 합니다. ^^;;)
감사합니다. ^^;;