한글 이 깨집니다. 도와 주세요. > 그누4 질문답변

그누4 질문답변

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

한글 이 깨집니다. 도와 주세요. 정보

한글 이 깨집니다. 도와 주세요.

본문

http://www.bspolice.com/test5.php

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

메타 부분 어떻게 수정 해야 되는 거죠?

제목 표시줄 한글 왜 깨지는 거죠?

아래 부분 이 깨지는 소스 코드 입니다.

좀 가르쳐 주세요.

좋은 하루들 되세요.


<?
//include_once("./_common.php");
//include_once("$g4[path]/lib/latest.lib.php");

$g4['title'] = "";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>김봉기 행정사</title>


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


<style type="text/css">
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
font-family: 돋움;
font-size:12px;

}
a:link{text-decoration:none}
a:visited{text-decoration:none}
a:active{text-decoration:none}
a:hover{text-decoration:none}
#head {
width: 970px;
height: 87px;
margin: auto;
}
#logo {
width: 235px;
height: 87px;
float: left;
}
#menu {
width: 735px;
height: 87px;
float: left;
}
#cont {
width: 970px;
height: 433px;
margin: auto;
}
#contm {
width: 235px;
height: 433px;
float: left;
}
#contc {
width: 735px;
height: 433px;
float:left;
}
#banner {
width: 970px;
height: 165px;
margin: auto;
}
#notice {
width: 235px;
height: 165px;
float: left;
}
#noticet {
width: 235px;
height: 67px;
}
#banner1 {
width: 245px;
height: 165px;
float: left;
}
#noticeb {
width: 215px;
height: 98px;
float: left;
}
#dummyn1 {
width: 10px;
height: 98px;
float: left;
}
#dummyn2 {
width: 10px;
height: 98px;
float: left;
}
#banner2 {
width: 250px;
height: 165px;
float: left;
}
#banner3 {
width: 240px;
height: 165px;
float: left;
}
#all {
widht: 1542px;
height: 685px;
margin: auto;
background-image: url(images/bg_0.jpg);
width: 1542px;
}
#menuT {
width: 735px;
height: 40px;
}
#menuB {
width: 735px;
height: 47px;
background-image: url(images/01_19.jpg);
}
#m1 {
width: 131px;
height: 47px;
float: left;
}
#m2 {
width: 127px;
height: 47px;
float: left;
}
#m3 {
width: 108px;
height: 47px;
float: left;
}
#m4 {
width: 123px;
height: 47px;
float: left;
}
#m5 {
width: 110px;
height: 47px;
float: left;
}
#m6 {
width: 136px;
height: 47px;
float: left;
}
</style>
</head>


<body><div id="all">
<div id="head"><div id="logo"><a href="index.php" target="_self"><img src="images/01_03.jpg" width="235" height="87" border="0" /></a></div><div id="menu"><div id="menuT"><img src="images/01_04.jpg" width="735" height="40" /></div>
<div id="menuB">
<div id="m1"><a href="/include/sub1.php" target="_self"><img src="images/01_07.jpg" width="131" height="47" border="0" /></a></div>
<div id="m2"><a href="/include/sub2.php"><img src="images/01_08.jpg" width="127" height="47" border="0" /></a></div>
<div id="m3"><a href="/include/sub3.php"><img src="images/01_09.jpg" width="108" height="47" border="0" /></a></div>
<div id="m4"><a href="/include/sub4.php"><img src="images/01_10.jpg" width="123" height="47" border="0" /></a></div>
<div id="m5"><a href="/include/sub5.php"><img src="images/01_11.jpg" width="110" height="47" border="0" /></a></a></div>
<div id="m6"><a href="/include/sub6.php"><img src="images/01_12.jpg" width="136" height="47" border="0" /></a></div>


</div>


</div></div>

<div id="cont"><div id="contm"><img src="images/01_13.jpg" width="235" height="433" /></div><div id="contc"><img src="images/01_14.jpg" width="735" height="433" /></div></div>

<div id="banner">
  <div id="notice">
  <div id="noticet"><img src="images/01_15.jpg" width="235" height="67" /></div>
  <div id="dummyn1"></div>
 
 
  <div id="noticeb">
 



<?php


$link = mysql_connect('localhost', 'bspolice', 's62627042');

if (!$link) {
    die('Could not connect: ' . mysql_error());
}



echo 'database connect Connected successfully';

echo "<br>";


$db_selected = mysql_select_db('bspolice', $link);


if (!$db_selected) {
    die ('Can\'t select database : ' . mysql_error());
}
else

echo "database selected";


echo "<br>";


$query = "SELECT * FROM `g4_write_gong_ji_sa_hang` order by `wr_id` desc limit 0,3;";

$result = mysql_query($query, $link);

while($data = mysql_fetch_array($result))
{
$rest = substr($data['wr_subject'] , 0, 33);

echo $rest, "...", "<br>";

}


?>



  </div>



  <div id="dummyn2"></div>
  </div>
  <div id="banner1"><a href="/include/sub2.php"><img src="images/01_16.jpg" width="245" height="165" border="0" /></a></div>
  <div id="banner2"><a href="/include/sub4.php"><img src="images/01_17.jpg" width="250" height="165" border="0" /></a></div>
  <div id="banner3"><a href="/include/sub6.php"><img src="images/01_18.jpg" width="240" height="165" border="0" /></a></div>
</div>
</div>
  <? include "./include/bottom.php"; ?>
</body>
</html>




<?php

/*


$rest = substr("abcdefghijklmnopqrstu", 0,  14);


echo $rest, "...";


*/

?>


utf-8 로 하면 한글이 깨져서

euc-kr로 했읍니다.

지금 euc-kr로 했는데도 한글 이 깨집니다.

utf-8 과 euc-kr 둘 다 한글 이 깨지는 상황 입니다. 도와 주세요.
  • 복사

댓글 전체

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

일단 이렇게 바꾸어보세요
그게아니라면 언어셋을 변환시켜서 올려보세요
http://sir.co.kr/bbs/board.php?bo_table=g4_convert
utf-8 로 하면 한글이 깨져서

euc-kr로 했읍니다.

지금 euc-kr로 했는데도 한글 이 깨집니다.

utf-8 과 euc-kr 둘 다 한글 이 깨지는 상황 입니다. 도와 주세요.
http://sir.co.kr/bbs/board.php?bo_table=g4_convert
여기서 변환툴 하나고르신후 euc-kr로 바꾸어 올리세요
해당소스가 utf-8로 되어있는것같네요

언어셋은 euc-kr 로 하시구요
© SIRSOFT
현재 페이지 제일 처음으로