Mambo/Joomla with SMF에서 UTF-8로 설정시 한글 깨짐
작업2007. 3. 2. 20:19
SMF의 소스 중 Sources/Load.php 파일을 수정한다.
147 // Most database systems have not set UTF-8 as their default input charset.
148 /* if (isset($db_character_set) && preg_match('~^\w+$~', $db_character_set) === 1)
149 db_query("
150 SET NAMES $db_character_set", __FILE__, __LINE__);
151 */
P.S. DB가 UTF-8로 셋팅되어 있을 경우에만 해당된다.
147 // Most database systems have not set UTF-8 as their default input charset.
148 /* if (isset($db_character_set) && preg_match('~^\w+$~', $db_character_set) === 1)
149 db_query("
150 SET NAMES $db_character_set", __FILE__, __LINE__);
151 */
P.S. DB가 UTF-8로 셋팅되어 있을 경우에만 해당된다.