Hi, Can anyone help me in solving the character issue in mail subject? I would like to print the subject with the text "ocenÄ›nÃ" ... But i am receiving some junk values like " Ocen&#283;nà ".... when i send mail through the PHP page. I used the code "$headers .= 'MIME-Version: 1.0'; $headers .= "\nContent-Type: multipart/mixed; $message = <.........message.....> for the body section and it worked fine.. but for the "subject section" i tried many options, but it is not working. Thank you in advance.
subject must satisfy RFC 2047 : http://www.faqs.org/rfcs/rfc2047.html Do a search for "php mail subject line encoding" and there are various options to try...
You're assuming that the recipient's email program can decode anything but pure text. You can't do that. Unless they have their computer set to the same language as you have yours set to, it's not safe to assume anything other than the standard ASCII set. (This includes HTML - many email clients don't parse HTML, they display it.)