ID: 45486
Updated by: [EMAIL PROTECTED]
Reported By: serovov at gmail dot com
-Status: Open
+Status: Assigned
Bug Type: Unknown/Other Function
Operating System: all
PHP Version: 5.2.6
-Assigned To:
+Assigned To: felipe
Previous Comments:
------------------------------------------------------------------------
[2008-07-11 11:33:22] serovov at gmail dot com
Description:
------------
When executing mb_send_mail with headers
<?
$headers = 'Content-Type: text/plain; charset="UTF-8"';
mb_send_mail('[EMAIL PROTECTED]', 'The Bug', 'Bla bla bla', $headers);
?>
Error: "Unsupported charset ""UTF-8"" - will be regarded as ascii"
But when i pass charset=UTF-8 its works Okey...
Reproduce code:
---------------
<?
$headers = 'Content-Type: text/plain; charset="UTF-8"';
mb_send_mail('[EMAIL PROTECTED]', 'The Bug', 'Bla bla bla', $headers);
?>
Expected result:
----------------
ignore quotes in Content-Type: text/plain; charset="UTF-8"
Actual result:
--------------
Error: "Unsupported charset ""UTF-8"" - will be regarded as ascii"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45486&edit=1