By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

swedish characters doesn't work

P: 1
I m trying to send a email and sms alert to people and it works fine on all systems expect on Iphone,the problem is swedish charcters doesn't show on iphones used by people in sweden but works absolutely fine on iphones in india.
the code i m using is right below,plz have a look and not into the problem as problem is a bit strange.
$headers = "MIME-Version: 1.0\n" ;
$headers .= "Content-Type: text/plain; charset=\"UTF-8\"\n";
$headers .= "X-Priority: 1 (Highest)\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "Importance: High\n";


// Additional headers
$headers .= 'From: Rakesh <watever@itis.com>' . "\r\n";
foreach($disemail as $email)
{
$to = $email;
$subject = $succMessage['email_subject'];
$message = $smsText;
mail($to,'=?UTF-8?B?'.base64_encode($subject).'?=',$message,$heade r);
}
}
if (stripos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== FALSE) {
$smsText = utf8_encode($smsText);
}
Oct 10 '11 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.