Re: correct encoding for emails
| From: | David Nicholson | Date: | Tue, 24 Jun 2003 14:10:49 +0000 |
| Subject: | Re: correct encoding for emails | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152618@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Tue, 24 Jun 2003 at 14:41,
lines prefixed by '>' were originally written by you.
> Btw how do i use "quoted-printable encoding" ?
I'll admit now that I have not read the relevant RFC so I am open to
corrections.
From examining existing e-mails I recieved I determined that quoted
printable appears to do this to the message body:
$body = preg_replace("/([=?_])/e","strval('=' .
strtoupper(dechex(ord('\\1')))) ",$body);
i.e. =, ? and _ symbols are replaced with an equals sign, followed
by the ascii code for the character required (in uppercase hex).
HTH
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)