Anwar,
I see that Sudadev is down so I'm writing this here for you I'm sure u'll check it fast, and I'm really sorry for being late to respond.
You don't have any problem with the coding but the problem lies within the apache server settings. Look for this value in httpd.conf (within the apache folder):
AddDefaultCharset on
and set it to off like such:
AddDefaultCharset off
You can just delete the whole line but I prefer setting it to off.
The "on" value gives precedence to the default language encoding "iso-8859-1" over the http encoding "windows-1256" which is your problem right now.When some body posts in arabic the brower shifts to the default encoding and sends the data to the server as a garbage code. The garbage code already there cannot be repaired since it's already saved like that in the database. You have three options to deal with it:either get rid of it, leave it as it is or just tell the members to correct their posts after you solve the problem.
I hope this helps
with best wishes
(عدل بواسطة Ahmed Elsharif on 05-21-2004, 02:18 AM)
(عدل بواسطة Ahmed Elsharif on 05-21-2004, 02:22 AM)
(عدل بواسطة Ahmed Elsharif on 05-21-2004, 02:25 AM)
(عدل بواسطة Ahmed Elsharif on 05-21-2004, 02:29 AM)