note 77210 deleted from ref.mail by danbrown

From: Date: Sun, 17 May 2009 20:06:27 +0000
Subject: note 77210 deleted from ref.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155332@lists.php.net to get a copy of this message
Note Submitter: timo dot witte at kwick dot de ---- if you wonder how to encode an subject in UTF-8 do it like this: <?php mail("timo.witte@kwick.de", "=?UTF-8?B?".base64_encode("also öhm äähh ühh puh ja die Sonderzeichen")."?=", "asbdasdasd bla blabla", $headers); ?> =UTF-8?B?[Base64 encoded Subject]?= The B stands for Base64 you could use Q instead of B and encode your UTF-8 string in 7 bit ASCII but base64 is simpler i think. why encoding? because you are not allowed to use 8-bit ASCII in mailheaders only 7-bit ASCII is allowed and pure utf-8 uses 8-bit ASCII characters.

« previous php.notes (#155332) next »