Hi all
I have a MySQL database, which has a table with UTF-8 encoding. I can enter data in table correctly, and I can see the characters in database. But when I query from database with PHP, it only shows me question marks instead of characters. How can I retrieve data correctly?
I use this query before insert or update data in database:

SET NAMES 'utf8'

Now do I have run a similar query when I want to fetch data?

    Have you specified UTF-8 as the encoding type for your [X]HTML page being output by your script?

      sure I did it:

      <meta http-equiv="Content-Language" content="fa">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      
        Write a Reply...