选择语言 :

 Core_Email::_get_encoding

Get Mail Encoding

string Core_Email::_get_encoding( [ bool $return = bool true ] )

参数列表

参数 类型 描述 默认值
$return bool bool true
返回值
  • string
File: ./core/classes/email.class.php
protected function _get_encoding($return = true)
{
    in_array($this->_encoding, $this->_bit_depths) || $this->_encoding = '8bit';

    foreach ($this->_base_charsets as $charset)
    {
        if (strpos($charset, $this->charset) === 0)
        {
            $this->_encoding = '7bit';
        }
    }

    if ($return === true)
    {
        return $this->_encoding;
    }
}