How to get WIN-1255 encoded string
| From: | Marina Markus | Date: | Sun, 07 Nov 2004 11:57:24 +0000 |
| Subject: | How to get WIN-1255 encoded string | ||
| Groups: | php.general php.i18n | ||
| Request: | Send a blank email to php-general+get-201419@lists.php.net to get a copy of this message | ||
Hello,
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.
If anyone has a solution for another character set, I suppose it can also
help.
Will be grateful for any hint or idea.
Marina Markus
mary@bgu.ac.il