I have a website connected to the database and I used arabic words to save it in the database. It works fine when I insert the words manually in phpmyadmin but when I try to insert it using php it doesn't work and it is displayed like this in the database: & # 1 5 9 3 ; & # 1 6 0 4 ; & # 1 6 1 0;
I also added this code after connecting to the database but still didn't work:
mysql_select_db('databasename',$con);
mysql_query("set character_set_server='utf8'");
mysql_query("set names 'utf8'");