Forum Moderators: coopster

Message Too Old, No Replies

UTF-8 in Mail subject

UTF-8 works fine in body, but not in subject

         

waldemar

10:15 am on Dec 12, 2003 (gmt 0)

10+ Year Member



Does anyone know how to activate utf-8 display in the mail subject? Defining the content-type = utf-8 only seems to affect the only body while the subject still reads?-characters instead of utf-8 chars.
I encountered e-mails with the prefix "=?UTF-8?" but adding this part to my subjects didn't do the trick... and finally mb_encode_mimeheader() crashes...:-(
Anybody an idea?

jatar_k

2:09 am on Dec 13, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I don't have an answer but I do have a few links

On the page for the mail function [ca.php.net] on php.net it references this Zend article on Sending MIME email [zend.com]. Check through that article as well as the comments below.

There was this one about converting Icelandic chars in the subject [zend.com]