From beaa56f2b29bb1898eb56ffd30f8321ab63353fd Mon Sep 17 00:00:00 2001 From: MinSoo Kim Date: Sun, 29 Mar 2015 12:13:55 +0900 Subject: [PATCH] Handle component_title as UTF-8 characterset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 일부 서버 환경..(제 테스트 환경[닷홈 무료 호스팅])에서 기본 캐릭터 셋이 UTF-8이 아닌듯 합니다.. 글자가 깨져서 왜 그런가 원인을 찾다 보니 발견한 것입니다. 에디터에서 htmlentity 함수가 실행될 때 문자열 인코딩을 UTF-8로 인식하게 합니다. (대부분 기본값이 UTF-8이지만 일부 아닌 환경을 위하여..) --- modules/editor/skins/ckeditor/editor.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/skins/ckeditor/editor.html b/modules/editor/skins/ckeditor/editor.html index 54faad093..7792cc324 100755 --- a/modules/editor/skins/ckeditor/editor.html +++ b/modules/editor/skins/ckeditor/editor.html @@ -50,7 +50,7 @@ {@ $xe_component = array(); } - {@ $xe_component[] = $component_name . ":'" . htmlentities($component->title, ENT_QUOTES) . "'"; } + {@ $xe_component[] = $component_name . ":'" . htmlentities($component->title, ENT_QUOTES, "UTF-8") . "'"; } {@ $xe_component = implode(',', $xe_component); }