note 24034 added to function.bin2hex

From: Date: Sun, 04 Aug 2002 21:01:52 +0000
Subject: note 24034 added to function.bin2hex
Groups: php.notes 
Request: Send a blank email to php-notes+get-34276@lists.php.net to get a copy of this message
I have found the above quoted-printable encoding function to be extremely useful, and thank maxg for making a great function that is not already included in PHP. (Pity it's hidden all the way over here when it could be found more easily in quoted_printable_decode() ) However, there is one missing character in the code that needs to be included: Right after the ?Q? there needs to be an extra equal sign in order for the very first character to be translated by the e-mail software. $string = "=?$charset?Q?=" . $encoded . "?="; is correct. I don't yet have enough experience to speak for other caveats or improvements, but your mileage may vary depending on the e-mail server. - Luke -- http://www.php.net/manual/en/function.bin2hex.php http://master.php.net/manage/user-notes.php?action=edit+24034 http://master.php.net/manage/user-notes.php?action=delete+24034 http://master.php.net/manage/user-notes.php?action=reject+24034

« previous php.notes (#34276) next »