Re: MIME - AGAIN - Please Help
| From: | David Otton | Date: | Fri, 16 May 2003 13:34:31 +0000 |
| Subject: | Re: MIME - AGAIN - Please Help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147885@lists.php.net to get a copy of this message | ||
On Fri, 16 May 2003 09:18:46 -0400, you wrote:
>I found this great script that allows me to send an email to a MySQL record
>(due to people on this list, thanks guys!) and now need to translate the
>body of the message with contains characters I assume were created and are
>translated through email such as in the following:
>
>Work Requirements: Full-Time, Part-Time, Employee, Contractor, =
>Temporary Education: Master's Degree
>Work Status: US I am authorized to work in this country for any =
>employer.
>=20
>
>How can I display this without those codes from the database formatted so
>the clients stops crying?
You mean "=20" for space, etc?
Can you turn them off at the email client? That's the sensible place.
If not... use a regex to pick out strings in the form "=[0-9A-F]{2}"
(case-insensitive, that's from memory, I probably got the exact syntax
wrong), and replace them with their ASCII or HTML equivalent (as you
prefer).
http://www.freesoft.org/CIE/RFC/1521/6.htm