Possible Duplicate:
Save Data in Arabic in MySQL database
I have a problem with retrieving Arabic data from MYSQL database using PHP, it appears as question marks "????" in HTML:
- I have a database with "utf8_general_ci" as collation.
- The database contains some data in Arabic Language.
- The HTML encoding is "UTF-8".
- When I tried to retrieve the data in HTML, it appears as "?????".
Please Help !!!
you must set charset in first connect with mysql by this query:
for example in mysqli functions
and PDO sample :
this action need before insert and before select.