Changeset 17491 for branches/version-2


Ignore:
Timestamp:
2008/08/05 13:23:08 (14 years ago)
Author:
adachi
Message:

merge r17484(yammo) #326 メール差出人が文字化けする不具合を修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/SC_SendMail.php

    r17216 r17491  
    111111    // 件名の設定 
    112112    function setSubject($subject) { 
    113         $this->subject = mb_encode_mimeheader($subject); 
     113        $this->subject = mb_encode_mimeheader($subject, "JIS", 'B', "\n"); 
    114114        $this->subject = str_replace("\x0D\x0A", "\n", $this->subject); 
    115115        $this->subject = str_replace("\x0D", "\n", $this->subject); 
     
    154154                if(OS_TYPE != 'WIN') { 
    155155                    // windowsでは文字化けするので使用しない。 
    156                     $_name = mb_convert_encoding($_name,"JIS",CHAR_CODE); 
     156                    // $_name = mb_convert_encoding($_name,"JIS",CHAR_CODE); 
    157157                } 
    158                 $_name = mb_encode_mimeheader($_name); 
     158                $_name = mb_encode_mimeheader($_name, "JIS", 'B', "\n"); 
    159159                $name_address = "\"". $_name . "\"<" . $mail_address . ">"; 
    160160            } else { 
Note: See TracChangeset for help on using the changeset viewer.