From 6900423a0c158f142d6f8451b03a269f53022add Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 22 Mar 2021 15:05:27 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=84=EC=9D=B4=EC=BD=94=EB=93=9C=20JSON=20?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EC=82=AC=EC=9A=A9=EC=8B=9C=20EUC-KR=20?= =?UTF-8?q?=EB=A1=9C=20=EB=AC=B8=EC=9E=90=EC=97=B4=EC=9D=84=20=EB=B3=80?= =?UTF-8?q?=ED=99=98=ED=95=98=EC=A7=80=20=EC=95=8A=EA=B2=8C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/sms5/sms5.lib.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugin/sms5/sms5.lib.php b/plugin/sms5/sms5.lib.php index e9a22330d..1165fa82b 100644 --- a/plugin/sms5/sms5.lib.php +++ b/plugin/sms5/sms5.lib.php @@ -162,10 +162,15 @@ if($config['cf_sms_type'] == 'LMS') { var $Log = array(); function Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate="", $nCount) { - // EUC-KR로 변환 - $strCaller = iconv_euckr($strCaller); - $strSubject = iconv_euckr($strSubject); - $strData = iconv_euckr($strData); + global $config; + + // 아이코드 JSON 모듈은 UTF-8 을 사용하며, sms 또는 lms 는 euc-kr 로 사용한다. + if(! (isset($config['cf_icode_token_key']) && $config['cf_icode_token_key'])){ + // EUC-KR로 변환 + $strCaller = iconv_euckr($strCaller); + $strSubject = iconv_euckr($strSubject); + $strData = iconv_euckr($strData); + } return parent::Add($strDest, $strCallBack, $strCaller, $strSubject, $strURL, $strData, $strDate, $nCount); }