라테스트에서 한글이 깨질수있나요?? 기본 라테스트이구요~

라테스트에서 한글이 깨질수있나요?? 기본 라테스트이구요~

QA

라테스트에서 한글이 깨질수있나요?? 기본 라테스트이구요~

본문

라테스트에서 한글이 깨질수있나요?? 기본 라테스트이구요~



바탕화면.png
 
function latest($skin_dir="", $bo_table, $rows=10, $subject_len=40, $options="")
{
    global $g4;
    if ($skin_dir)
        $latest_skin_path = "$g4[path]/skin/latest/$skin_dir";
    else
        $latest_skin_path = "$g4[path]/skin/latest/basic";
    $list = array();
    $sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
    $board = sql_fetch($sql);
    $tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
    //$sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_id desc limit 0, $rows ";
    // 위의 코드 보다 속도가 빠름
    $sql = " select * from $tmp_write_table where wr_is_comment = 0 order by wr_num limit 0, $rows ";
    //explain($sql);
    $result = sql_query($sql);
    for ($i=0; $row = sql_fetch_array($result); $i++)
        $list[$i] = get_list($row, $board, $latest_skin_path, $subject_len);
   
    ob_start();
    include "$latest_skin_path/latest.skin.php";
    $content = ob_get_contents();
    ob_end_clean();
    return $content;
}

>> 지금까지 한번도 깨진적이 없다가 에러가 났네요..


이 질문에 댓글 쓰기 :

답변 3

common.lib.php 파일에 cut_hangul_last 함수가 있어요. 그걸 한번 이용해보심이..

$list['is_notice'] = preg_match("/[^0-9]{0,1}{$list['wr_id']}[\r]{0,1}/",$board['bo_notice']);

    if ($subject_len)
        $list['subject'] = conv_subject($list['wr_subject'], $subject_len, "...");
    else
        $list['subject'] = conv_subject($list['wr_subject'], $board['bo_subject_len'], "...");

$list['subject']=cut_hangul_last($list['subject']);

이렇게했는데도 안되네요.. 어떻게 하면좋을까요??

답변을 작성하시기 전에 로그인 해주세요.
전체 25
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT