|
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 02:19:36
![Picture of Manuel Lemos Picture of Manuel Lemos](/picture/user/1.jpg) Manuel Lemos - 2011-08-04 02:54:47 - In reply to message 1 from FREDJ A .J
If you are using Arabic text, you need to set the message encoding according to character set you are using. You probably just need to set the default_charset variable to utf-8 or whatever character set you text uses.
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 03:13:38 - In reply to message 2 from Manuel Lemos
Thank you Manuel, already done "utf-8" works just fine, but the problem is that the mail subject still unreadable,
NB: when i use '=?UTF-8?B?' . base64_encode($subject) . '?='
works but is there another way?
Thanks Again.
![Picture of Manuel Lemos Picture of Manuel Lemos](/picture/user/1.jpg) Manuel Lemos - 2011-08-04 03:57:33 - In reply to message 3 from FREDJ A .J
You should not encode the header values yourself. The class does that for you. Just pass it the header values with Arabic text using SetEncodedHeader or SetEncodedEmailHeader.
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 04:35:38 - In reply to message 4 from Manuel Lemos
i don't understand?
SetEncodedHeader("Subject", $subject);
SetEncodedHeader("Subject", $subject, $encoding_charset = 'UTF-8')
![Picture of Manuel Lemos Picture of Manuel Lemos](/picture/user/1.jpg) Manuel Lemos - 2011-08-04 04:47:12 - In reply to message 5 from FREDJ A .J
Yes, either way it is fine. If you specify the encoding_charset parameter, it will override the value set in the class variable default_charset, so it is not necessary to specify that parameter.
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 05:10:11 - In reply to message 6 from Manuel Lemos
i really appreciate your help, but the same problem, none of them work!
![Picture of Manuel Lemos Picture of Manuel Lemos](/picture/user/1.jpg) Manuel Lemos - 2011-08-04 06:07:21 - In reply to message 6 from Manuel Lemos
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 18:49:44 - In reply to message 8 from Manuel Lemos
body work, but not subject!!
![Picture of FREDJ A .J Picture of FREDJ A .J](/graphics/unknown.gif) FREDJ A .J - 2011-08-04 18:50:31 - In reply to message 8 from Manuel Lemos
body work, but not subject!!
|