Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/229.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
php字符串';t';更改为'=';;_Php_String_Codeigniter_Email - Fatal编程技术网

php字符串';t';更改为'=';;

php字符串';t';更改为'=';;,php,string,codeigniter,email,Php,String,Codeigniter,Email,我有一个奇怪的问题 $body = 'Hi there, <br /><br /> A new label request has been made on Our Trading Platform.'; $this->CI->email->from($from, 'Our Trading Platform'); $this->CI->email->to($to); $this->CI-

我有一个奇怪的问题

$body = 'Hi there, <br /><br /> 
        A new label request has been made on Our Trading Platform.';

    $this->CI->email->from($from, 'Our Trading Platform');
    $this->CI->email->to($to);
    $this->CI->email->cc($cc);

    $this->CI->email->subject($subject);
    $this->CI->email->message($body);   

    if($this->CI->email->send())
        return TRUE;
    else
        echo $this->CI->email->print_debugger();
$body='你好,

在我们的交易平台上提出了新的标签申请。”; $this->CI->email->from($from,'我们的交易平台'); $this->CI->email->to($to); $this->CI->email->cc($cc); $this->CI->email->subject($subject); $this->CI->email->message($body); 如果($this->CI->email->send()) 返回TRUE; 其他的 echo$this->CI->email->print_debugger();
上面是我的php电子邮件正文。在电子邮件中,它变成:

“你好,

已在我们的交易Pla=表格上提出新的标签要求。“

我用$body做的是使用codeigniter的电子邮件库发送电子邮件。
“t”更改为“=”。我的字符串有什么问题?

可能是编码问题。确保源文件使用的编码与发送的消息相同。尝试将所有设置为UTF-8。

什么是
var\u转储($body)输出?您正在查找电子邮件源吗?或者你在你的邮件客户端中收到了这样的信息?@DamienPirsy是的,我收到了,源代码是“=”你发现了臭名昭著的t-change bug(它曾经是c-change bug)。。。。或者你忘记了一些事情,比如发布你的代码,显示你如何处理这个$body字符串如果它在电子邮件中,很可能与编码有关(例如,编码不好的电子邮件可能会在每行末尾显示
=
)。但是如果没有看到更多的代码,就不可能提供更多的帮助。