note 85157 added to function.quoted-printable-decode
| From: | david at lionhead dot nl | Date: | Mon, 18 Aug 2008 12:54:49 +0000 |
| Subject: | note 85157 added to function.quoted-printable-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-143582@lists.php.net to get a copy of this message | ||
My version of quoted_printable encode, as the convert.quoted-printable-encode filter breaks on
outlook express. This one seems to work on express/outlook/thunderbird/gmail.
function quoted_printable_encode($txt) {
$tmp="";
$line="";
for ($i=0;$i<strlen($txt);$i++) {
if (($txt[$i]>='a' && $txt[$i]<='z') ||
($txt[$i]>='A' && $txt[$i]<='Z') || ($txt[$i]>='0'
&& $txt[$i]<='9'))
$line.=$txt[$i];
else
$line.="=".sprintf("%02X",ord($txt[$i]));
if (strlen($line)>=75) {
$tmp.="$line=\n";
$line="";
}
}
$tmp.="$line\n";
return $tmp;
}
----
Server IP: 83.137.20.135
Probable Submitter: 82.169.4.95
----
Manual Page -- http://www.php.net/manual/en/function.quoted-printable-decode.php
Edit -- https://master.php.net/note/edit/85157
Del: integrated -- https://master.php.net/note/delete/85157/integrated
Del: useless -- https://master.php.net/note/delete/85157/useless
Del: bad code -- https://master.php.net/note/delete/85157/bad+code
Del: spam -- https://master.php.net/note/delete/85157/spam
Del: non-english -- https://master.php.net/note/delete/85157/non-english
Del: in docs -- https://master.php.net/note/delete/85157/in+docs
Del: other reasons-- https://master.php.net/note/delete/85157
Reject -- https://master.php.net/note/reject/85157
Search -- https://master.php.net/manage/user-notes.php