마이테일님 미투데이 보내기 기능?

site:sir.co.kr Fatal error: Call to undefined function: set_utf8()

해봤는데 위처럼 에러가 발생해요 ㅠ
|

댓글 2개

스킨에서 view.skin.php 상단에 추가해보세요

<?
// euckr -> utf8
if (!function_exists("set_utf8")) {
function set_utf8($str)
{
if (!is_utf8($str))
$str = convert_charset('cp949', 'utf-8', $str);

$str = trim($str);

return $str;
}}

// utf8 -> euckr
if (!function_exists("set_euckr")) {
function set_euckr($str)
{
if (is_utf8($str))
$str = convert_charset('utf-8', 'cp949', $str);

$str = trim($str);

return $str;
}}


// Charset 을 변환하는 함수
if (!function_exists("convert_charset")) {
function convert_charset($from_charset, $to_charset, $str) {
if( function_exists('iconv') )
return iconv($from_charset, $to_charset, $str);
elseif( function_exists('mb_convert_encoding') )
return mb_convert_encoding($str, $to_charset, $from_charset);
else
die("Not found 'iconv' or 'mbstring' library in server.");
}}

// 텍스트가 utf-8 인지 검사하는 함수
if (!function_exists("is_utf8")) {
function is_utf8($string) {

// From http://w3.org/International/questions/qa-forms-utf-8.html
return preg_match('%^(?:
[\x09\x0A\x0D\x20-\x7E] # ASCII
| [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte
| \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs
| [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte
| \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates
| \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3
| [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15
| \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16
)*$%xs', $string);
}}
?>
감사해요!!!
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

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

+
제목 글쓴이 날짜 조회
15년 전 조회 1,176
15년 전 조회 1,450
15년 전 조회 1,689
15년 전 조회 1,525
15년 전 조회 1,573
15년 전 조회 1,089
15년 전 조회 1,514
15년 전 조회 1,161
15년 전 조회 1,678
15년 전 조회 1,523
15년 전 조회 1,033
15년 전 조회 1,241
15년 전 조회 1,816
15년 전 조회 1,523
15년 전 조회 1,517
15년 전 조회 1,567
15년 전 조회 1,613
15년 전 조회 1,464
15년 전 조회 1,504
15년 전 조회 1,521