#19182 [Opn->Fbk]: mb_send_mail not changing encoding properly

From: Date: Thu, 05 Sep 2002 21:35:39 +0000
Subject: #19182 [Opn->Fbk]: mb_send_mail not changing encoding properly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18538@lists.php.net to get a copy of this message
ID: 19182 Updated by: kalowsky@php.net Reported By: s.mccleary@operon.com -Status: Open +Status: Feedback Bug Type: mbstring related Operating System: Red Hat Linux 7.2 PHP Version: 4.2.2 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#18538) next »