얼럿창에서 한글이 깨져요. -0- > 그누4 질문답변

그누4 질문답변

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

얼럿창에서 한글이 깨져요. -0- 정보

얼럿창에서 한글이 깨져요. -0-

본문

아원님의 경매스킨을 사용하고 있는데 입찰 신청시 얼럿에 한글이 깨져서 나옵니다. ㅠㅠ
 
언어셋은 UTF-8 입니다.
 
아래의 자바스크립트에 UTF-8과 호환되지 않는 부분이 있는 것일까요?
 
고수님들.. 답변 좀 부탁드립니다. ㅠㅠ
 
 
 
 
<script language="JavaScript">
 alert("구매신청 하였습니다.");
 opener.location.reload();
 window.close();
</script>
  • 복사

댓글 전체

전체 소스도 올려볼께요. 다른 얼럿은 한글로 나오는데 가장 밑에 줄의 자바스크립트에 있는 문장(구매신청 하였습니다.)만 깨지네요..


<?
include_once("./_common.php");

if (!$member[mb_id]) {
alert_close("로그인 후 이용하세요.");
}

// 리퍼러 체크
referer_check();

if ($w == 'u')
    check_demo();

$b_id = substr($bo_table,0,2);
$b_wr = $wr_id;
$b_rand = rand(1,9999);
$b_rand2 = rand(1,32);
$by_id = "{$b_id}_{$b_wr}_{$b_rand}{$b_rand2}";

if (!ereg("^([0-9_]{1,20})$", $quantity)) {
alert("신청수량이 잘못 되었습니다.");
}

$sql_common = " wr_2      = '$money'
                ";

$sql_common2 = " bo_table  = '$bo_table',
                wr_id      = '$wr_id',
                se_id      = '$mb_id',
                mb_id      = '$member[mb_id]',
                money      = '$money',
quantity  = '$quantity',
time      = '$g4[time_ymdhis]',
by_type    = '$money'
                ";

if ($w == "") {
    $row = sql_fetch(" select wr_2, wr_6 from g4_write_{$bo_table} where wr_id = '$wr_id' ");

    $sql_item = " select start, by_type from $g4[item_by_table] where bo_table = '$bo_table' and wr_id = '$wr_id' and mb_id = 'item' ";
    $item = sql_fetch($sql_item);

    if ($money <= $row[wr_2]) {
        alert("현재가 보다 구매금액이 낮습니다. 다시 신청하세요.");
}
    else if ($quantity <= '0') {
        alert("신청수량을 올바르게 입력하여 주세요.");
}
    else if ($quantity > $item[by_type]) {
        alert("신청수량이 최대 구매수량보다 큽니다. 다시 신청하세요.");
}
    else if ($quantity > $row[wr_6]) {
        alert("신청수량이 남은수량보다 큽니다. 다시 신청하세요.");
}

    $sql = " update g4_write_{$bo_table}
                set wr_4 = wr_4 + 1,
                    $sql_common
where wr_id = '$wr_id' ";
    sql_query($sql);

    $sql2 = " insert into $g4[item_by_table]
                set by_id = '$by_id',
                    $sql_common2 ";
    sql_query($sql2);
}

else if ($w == "u") {
}
else
    alert("제대로 된 값이 넘어오지 않았습니다.");
?>

<script language="JavaScript">
alert("구매신청 하였습니다.");
opener.location.reload();
window.close();
</script>
© SIRSOFT
현재 페이지 제일 처음으로