Hi All, I have a problem in arabic emails.The arabic emails are not encoding properly.I am a PHP developer, I am using MIME version 1.0 and passing the charset as UTF-8 but the arabic characters not encoding properly.For example, عزيزيعضو كليبسر الÙÂيديو الذيقمت بتØÂميله قد ØÂÙÂذ٠بواسطة المدير Title : wewewew وجد المدير ÙÂيهذا الÙÂيديو بأنه غير لائق (ملاءم) you can see the problem .CAN ANYONE CAN HELP ME TO SOLVE THIS PROBLEM !!!! ITS VERY VERY VERY URGENT.........
I used the function for diffrent character encoding function getheader($user_id=""){ global $ADMIN_ID; $headers = "MIME-Version: 1.0" . "\r\n"; if($user_id!=""){ $strqry="select langid from user,language where users.maillang=language.langid and language.langstatus ='1' and users.user_id='".$user_id."'"; $rsquery=mysql_query($strqry,$this->link); if($rwsquery=mysql_fetch_array($rsquery)){ $lang_id=strtolower($rwsquery["langid"]); if($langid==17 || $langid==20 || $langid==22){ $headers .= "Content-type:text/html;charset=UTF-8;" . "\r\n"; $headers .= "content-Transfer-encoding: 8bit" ."\r\n"; } else if($langid==19){ $headers .= "Content-type:text/html;charset=Shift_JIS;" . "\r\n"; $headers .= "content-Transfer-encoding: 8bit" ."\r\n"; } else if($langid==21){ $headers .= "Content-type:text/html;charset=GB2312;" . "\r\n"; $headers .= "content-Transfer-encoding: 8bit" ."\r\n"; } else{ $headers .= "Content-type:text/html;charset=UTF-8;" . "\r\n"; $headers .= "content-Transfer-encoding: 8bit" ."\r\n"; } } } else{ $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n"; $headers .= "content-Transfer-encoding: 8bit" ."\r\n"; } $headers .= 'From: <'.$ADMIN_ID.'>' . "\r\n"; return $headers; } instead of UTF-8 I also used windows-1256, but it doesn't worked. Please help me to solve the problem....
From what I understand you are receiving e-mails in Arabic and can't view them. Just go to View > Encoding > Change to UTF-8 or Windows 1256. It's one of those that'll work.
I have go the emails , but they are some special characters.They can't read properly.The arabic characters are listed from a php script file in which some variables are defined, I am using these variables for each language.For all other languages its working properly, but for arabic it doesn't encoding properly.Here is the email that I got, عزيزيعضو كليبسر بخصوص بطلبك عنالتلويؠبعلم للÙÂيديو واÙÂقنا بطلبك عنالتلويؠبعلم للÙÂيديو بأنه غير لائق نترقب المزيد مندعمك ÙÂيالمستقبل تØÂيات the subject is also like this.I tried another mail function which will convert all characters to the UTF-8 encoding it works fine in gmail but not in yahoo and hotmail. please help me.
Try to receive your emails with outlook Express.. not by web mail. And add the Arabic language from your setting->Control Panel (if it's not done).
their is one more easier way and that is install windows with arabic enabled and that would certainly give you the option to check in arabic or the normal english
that is OK, if you live in arabic country , what if you live out of arabic zone. i do not use php but asp se Write persian may be this help.
يقمت بتØÂميله قد ØÂÙÂذ٠بواسطة المدير Title : wewewew وجد المدير ÙÂيهذا الÙÂيديو بأنه غير لائق (ملاءم)[/B] you can see