Quote:
Originally Posted by jazz_aaf
problem with adding arabic text under windows-1256 encoding. It writes well to the database, but display blank space when trying to read from the dbase. Any solution for this problem? Our forum uses windows-1256 instead of utf-8 to display arabic.
|
Are you using the arabic version or English? I can take a look into this and see if there is a workable fix, its not something I have come across before.
To read arabic from mysql through php
1) The field containing the arabic text should have Charset utf8 collation utf8_unicode_ci
2) In the page where you want to read this field
a)set the charset of the page to windows-1256
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
b) After establishing the connection to the MySQL write this two lines
mysql_query("SET NAMES cp1256");
mysql_query("set characer set cp1256");
let me see if I can work this in.