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, Quote Link to comment 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'"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.