한글 이 깨집니다. 좀 도와 주세요. 정보
한글 이 깨집니다. 좀 도와 주세요.본문
이 테스트 코드 로 하면 않 깨지는 데요
<?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 limit 0,3";
$result = mysql_query($query, $link);
while($data = mysql_fetch_array($result))
{
echo $data['wr_subject'] ,"<br>";
}
mysql_close($link);
?>
바로 아래 부분 한글 utf 8 부분 만 설정 되어 있읍니다.
삭제 를 해봐도 한글 이 깨지는데 무엇 을 바꾸어서 설정을 해야 되는 가요?
<?
//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>
<meta http-equiv="Content-Type" content="text/html; utf-8">
<title>김봉기 행정사</title>
<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 limit 0,3";
$result = mysql_query($query, $link);
while($data = mysql_fetch_array($result))
{
echo $data['wr_subject'] ,"<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>
http://bspolice.com
입니다.
여기 사이트 좀 봐주세요.
두개 의 소스 코드 중에서
아래 소스 코드 내용 된 사이트 입니다.
좀 고쳐 주세요.
부탁 드립니다.
좋은 하루 들 되세요
<?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 limit 0,3";
$result = mysql_query($query, $link);
while($data = mysql_fetch_array($result))
{
echo $data['wr_subject'] ,"<br>";
}
mysql_close($link);
?>
바로 아래 부분 한글 utf 8 부분 만 설정 되어 있읍니다.
삭제 를 해봐도 한글 이 깨지는데 무엇 을 바꾸어서 설정을 해야 되는 가요?
<?
//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>
<meta http-equiv="Content-Type" content="text/html; utf-8">
<title>김봉기 행정사</title>
<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 limit 0,3";
$result = mysql_query($query, $link);
while($data = mysql_fetch_array($result))
{
echo $data['wr_subject'] ,"<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>
http://bspolice.com
입니다.
여기 사이트 좀 봐주세요.
두개 의 소스 코드 중에서
아래 소스 코드 내용 된 사이트 입니다.
좀 고쳐 주세요.
부탁 드립니다.
좋은 하루 들 되세요
댓글 전체
됩니다. 감사합니다.
그런데, 또 문제가 생겼어요
인터넷 익스플로러 제목 창 한글 이 한자로 깨져서 나옵니다.
수정 답변 좀 부탁 드립니다.
그런데, 또 문제가 생겼어요
인터넷 익스플로러 제목 창 한글 이 한자로 깨져서 나옵니다.
수정 답변 좀 부탁 드립니다.
위아래 제목 소스의 소스코드 위치 바꾸기 로 해결 했습니다. 감사 합니다.