Re: How to get WIN-1255 encoded string
| From: | Manuel Lemos | Date: | Sun, 07 Nov 2004 18:18:24 +0000 |
| Subject: | Re: How to get WIN-1255 encoded string | ||
| References: | 1 | Groups: | php.general php.i18n |
| Request: | Send a blank email to php-general+get-201436@lists.php.net to get a copy of this message | ||
Hello,
On 11/07/2004 09:57 AM, Marina Markus wrote:
I am desperately looking for a solution of a problem that seems quite simple. I need a PHP script to create an email message in a way that a subject line in Hebrew will be readable in all mail clients. Some mail clients cannot cope with Hebrew if they don't have character set explicitly denoted. Is there a possibility in PHP allowing to encode a string with WIN-1255 character set encoding? The result should look like: =?windows-1255?B?Rlc6IOz26eHl+CDk8uXj6e0=?= which the mail client then is able to decode back into Hebrew.You can use this class for that purpose easily. Just set the default_charset class variable to that windows-1255 and the class will compose and send the message assuming that text in the body and in the headers are encoded that way. http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html