Re: IMAP functions help

From: Date: Mon, 17 Jun 2002 12:49:51 +0000
Subject: Re: IMAP functions help
Groups: php.general 
Request: Send a blank email to php-general+get-102499@lists.php.net to get a copy of this message
----- Original Message ----- From: "Matthew Ward" <email@inspirationstudios.co.uk> To: <php-general@lists.php.net> Sent: Monday, June 17, 2002 1:07 PM Subject: [PHP] IMAP functions help > I'm writing a multi-user email system to run off of one POP3 email address, > however I've run into some problems. > Displaying the actually body of the email itself is pretty easy, however I'm > having problems with different types of encoding which are causing things to > be displayed incorrectly. > > The first is text/plain: > Random characters seemed to get turned into other ASCII characters. For > example, the pound sign - "£" - becomes "=A3", so that "£10" > would become > "=A310". This is because the message is encoded using the 'Quoted-Printable' method - chars above ASCII 127 arn't supported within email transport, so chars such as £ have to be encoded - A3 is hex for 163 which is the ASCII code for £ - the '=' tells us that the following chars are encoded. (= itself is encoded to 3D btw) > The second is with text/html encoding types: > With text/html, random "3D"s keep getting put into tags. For example, a > normal font tag, <FONT face="Trebuchet MS" color=#ff0000 size=2> becomes > <FONT face=3D"Trebuchet MS" color=3D#ff0000 size=3D2>. And normal text on > the html page gets ASCII characters, specifically the = sign, put in it. For > example, "hello world. hows it going?" becomes "hello world. = hows it=20 > going?". Same thing as above =3D is ASCII for '='. 20 is ASCII for newline. HTH Danny.

« previous php.general (#102499) next »