mohammedsk Posted December 14, 2006 Share Posted December 14, 2006 I have tried to insert data to MySQL through PHP in Arabic language, it works fine.But if I do it through a PHP script it displays "??" in the MySQL table.PHP page is saved with UTF-8 encoding.What else do I have to change?Thanks, Link to comment https://forums.phpfreaks.com/topic/30604-insert-data-to-mysql-using-php-in-language-other-than-english/ Share on other sites More sharing options...
mohammedsk Posted December 14, 2006 Author Share Posted December 14, 2006 Never mind,I figured it out, I had to use mysql_query("SET NAMES 'UTF-8'"); Link to comment https://forums.phpfreaks.com/topic/30604-insert-data-to-mysql-using-php-in-language-other-than-english/#findComment-140925 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.