#19182 [Fbk->Csd]: mb_send_mail not changing encoding properly
| From: | sniper@php.net | Date: | Fri, 27 Sep 2002 00:52:26 +0000 |
| Subject: | #19182 [Fbk->Csd]: mb_send_mail not changing encoding properly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-20511@lists.php.net to get a copy of this message | ||
ID: 19182
Updated by: sniper@php.net
Reported By: s.mccleary@operon.com
-Status: Feedback
+Status: Closed
Bug Type: mbstring related
Operating System: Red Hat Linux 7.2
PHP Version: 4.2.2
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-09-05 16:35:38] kalowsky@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Or better yet a PHP 4.2.3RC before we release it.
------------------------------------------------------------------------
[2002-08-29 19:55:14] s.mccleary@operon.com
Red Hat Linux 7.2
Apache 1.3.26
PHP 4.2.2
P3 500mhz
Web site has not only Japanese and English, but also German, French and
Italian content.
Using SJIS for Japanese Encoding, ISO-8955-1 for everything else.
Internal encoding, http input and http output.
I set in php.ini to override the mail() function with mb_send_mail().
When the language was set to "Japanese" it worked fine for sending
Japanese email.
When the language was set to "English" it wouldn't display western
european characters such as umlauts and accents in the resulting email.
Since setting the language to "English" before calling this function
is supposed to make it use ISO-8955-1, it should have displayed those
characters fine, just as it did with HTTP output.
Workaround: Tell PHP not to override mail() with mb_send_mail(), and
instead pass an additional header to mail() saying "'Content-Type:
text/plain; charset=' . mb_internal_encoding()"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19182&edit=1