Minahito
minah****@users*****
2006年 10月 19日 (木) 17:56:25 JST
Index: xoops2jp/html/language/japanese/xoopsmailerlocal.php diff -u xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3 xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3.2.1 --- xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3 Tue May 16 22:11:28 2006 +++ xoops2jp/html/language/japanese/xoopsmailerlocal.php Thu Oct 19 17:56:25 2006 @@ -1,5 +1,5 @@ <?php -// $Id: xoopsmailerlocal.php,v 1.1.8.3 2006/05/16 13:11:28 nobunobu Exp $ +// $Id: xoopsmailerlocal.php,v 1.1.8.3.2.1 2006/10/19 08:56:25 minahito Exp $ // ------------------------------------------------------------------------ // // XOOPS - PHP Content Management System // // Copyright (c) 2000 XOOPS.org // @@ -35,7 +35,9 @@ $this->reset(); $this->charSet = 'iso-2022-jp'; $this->encoding = '7bit'; - $this->multimailer->CharSet = $this->charSet; + $this->multimailer->CharSet = $this->charSet; + $this->multimailer->SetLanguage('ja'); + $this->multimailer->Encoding = "7bit"; } function encodeFromName($text){ @@ -63,7 +65,7 @@ --------------------------------------*/ function STRtoJIS($str, $from_charset){ if (function_exists('mb_convert_encoding')) { //Use mb_string extension if exists. - $str_JIS = mb_convert_encoding($str, "ISO-2022-JP", $from_charset); + $str_JIS = mb_convert_encoding(mb_convert_kana($str,"KV", $from_charset), "JIS", $from_charset); } else if ($from_charset=='EUC-JP') { $str_JIS = ''; $mode = 0;