Page 1 of 1

Arabic encoding problem in emails

Posted: Thu Nov 01, 2007 1:52 am
by rajeeshvr_80
Hi All,

I have a problem with my arabic emails.I am using MIME version1.0 and passing the headers like

Code: Select all

function getheader_email($from_email){
		
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; 
$headers .= "From: <".$from_email.">" . "\r\n"; 
return $headers;
}
[/b]

I changed the charset to different types like windows-1256 ets searched from google but that also didn't solve the problem.

and also a html format is used for show the message in html format;

Code: Select all

function format_html($html){
	return "<html><body><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><font style=\"font-family:Arial, Helvetica, sans-serif; font-size:10px\">$html</font></body></html>";
}
[/b]

and using the mail() function for send the mails.

Code: Select all

mail(str_replace(' ','',$ownuser_email),$arrlangconst["OWN_DELVIDEO_MAILSUBJECT"],$this->format_html($strmessage),$this->getheader($video_user));
but the Arabic emails not showing properly. Its showing like

عزيزي عضو كليبسر

الÙ