Minahito
minah****@users*****
2006年 11月 15日 (水) 23:56:56 JST
Index: xoops2jp/html/modules/legacy/language/japanese/global.php diff -u xoops2jp/html/modules/legacy/language/japanese/global.php:1.1.2.1 xoops2jp/html/modules/legacy/language/japanese/global.php:1.1.2.2 --- xoops2jp/html/modules/legacy/language/japanese/global.php:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/global.php Wed Nov 15 23:56:55 2006 @@ -192,6 +192,22 @@ // change 0 to 1 if this language is a multi-bytes language define('XOOPS_USE_MULTIBYTES', '1'); +// +// Register the function about local. +// +if (function_exists('mb_convert_encoding') && function_exists('mb_convert_kana')) { + $root =& XCube_Root::getSingleton(); + $root->mDelegateManager->add('Legacy_Mailer.ConvertLocal', 'Legacy_JapaneseEucJP_convLocal'); +} + +function Legacy_JapaneseEucJP_convLocal(&$text, $mime) +{ + $text = mb_convert_encoding($text, 'JIS'); + if ($mime) { + $text = mb_encode_mimeheader($text); + } +} + function xoops_language_trim($text) { if (function_exists('mb_convert_kana')) {