Angelo Zanetti wrote:
thanks for the reply, I've got the classes now how do I know which
character set to use for the TM to be shown correctly?
Character sets can be a nasty business...
You were using the ISO-8859-1 character set in your headers. TM doesn't
exist in that character set. That's why it showed up as a box in many
email clients.
You should probably find out what character set you're
using/storing/sending - if you're using Windows, it's probably Windows
CP1252 (http://en.wikipedia.org/wiki/CP1252). UTF-8 (any many others)
also support(s) the TM symbol, but chances are that your OS doesn't use
UTF-8 by default.
You can use PHP's multi-byte string functions to manipulate character
sets, but be warned that there are "tricks" to it, for example,
mb_detect_encoding will detect CP1252 as ISO-8859-x, so you have to
manually specify CP1252 for conversion if you're sure that's the source
character set. (There are other character sets that seem to have similar
behavior too.)
Of course email needs to be sent in 7-bit ASCII, so you'd need to encode
your message with quoted-printable or equivalent. The classes mentioned
earlier probably accomplish this.
jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php