I have a PHP page where I am trying to display Arabic text, but showing it.
In the MySQL database, I successfully save the Arabic text.
I use the following code to connect to the database:
function connect(){ $this->dbLink = mysql_connect($this->dbHost,$this->dbUser,$this->dbPass); if(!$this->dbLink) die("Could not connect to database. " . mysql_error()); mysql_select_db($this->dbName); mysql_set_charset("utf8", $this->dbLink); }
And using the following heading on a PHP page:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
But there is still no success.
Thanks for the help.
php internationalization character-encoding
air
source share