0

这是我的代码:

    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
    $msg = "1'2 ’3"4 “5”6 7~8!9@10#11$12%13^14&15*16(17)18}19{20"21:22?23>24<25 ";
    $subject = "1'2 ’3"4 “5”6 7~8!9@10#11$12%13^14&15*16(17)18}19{20"21:22?23>24<25;
    mail("myemail@example.com",$subject,$msg);

消息完成,但主题只显示

1'2'3

主题来自数据库上的 row['subject']。请问有什么想法吗?

4

1 回答 1

1

尝试转义双引号:

"1'2 ’3\"4 \“5\”6 7~8!9@10#11$12%13^14&15*16(17)18}19{20\"21:22?23>24<25 ";
于 2012-07-03T17:48:56.817 回答