Re: How to get WIN-1255 encoded string
Manuel Lemos <[email protected]>
| Newsgroups | gmane.comp.php.internationalization,gmane.comp.php.general |
|---|---|
| Message-ID | <[email protected]> |
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 -- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php