To read ,write and sort Arabic text in mysql database using php correctly, make sure that:
1- MySQL charset: UTF-8 Unicode (utf8)
2- MySQL connection collation: utf8_general_ci
3- your database and table collations are set to: utf8_general_ci or utf8_unicode_ci
Then, add this code in your php script when you connect to db:
mysql_query("SET NAMES 'utf8'");
mysql_query('SET CHARACTER SET utf8');
for more details:
http://www.adviesenzo.nl/examples/ph...l_charset_fix/
I have tested it and it works well, I hope that would be helpful..
thanks!