Hello everyone,
I have mail function written in PHP which takes data like names and email ids from flash and sends the fomatted text to one of the emailid specified.
If user types in special characters (like umlouts - ß Ä ö etc.), for the name field, the person receiving the mail gets different characters in place of these special characters.
I’m able to resolve this issue for the mail content using
//$userdata is the variable which holds the formatted data as mail content
$userdata = mb_convert_encoding($userdata, 'ISO-8859-1', 'UTF-8');
But I’m not able to resolve it for the Subject part of the mail sent.
I tried using the same code above,
//$subject is the variable which holds the subject of the mail to sent
$subject = mb_convert_encoding($subject, 'ISO-8859-1', 'UTF-8');
but it doesn’t help.
I tried using…
$subject = utf7_encode($subject);
even that doesn’t help.
Any solution to this??
Thanks in advance!!
Trupti