When I try to use mb_encode_mimeheader on the subject line on an email like so:

$subject = mb_encode_mimeheader
(
mb_convert_encoding($subject, "ISO-2022-JP","AUTO"),
"ISO-2022-JP",
"B"
);

the result is split up into a lots of parts something like this:

"=?ISO-2022-JP?B?_SOMESTUFF_?=\n =?ISO-2022-JP?B?_SOMESTUFF2_?=\n =?ISO-2022-JP?B?_SOMESTUFF3_?=";

I've simply avoided using

mb_encode_mimeheader

and done this:

function my_mime($str){

        $str = "=?ISO-2022-JP?B?". base64_encode($str). "?=";
        return $str;

}

What am I doing wrong here?

Gary


-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to