Ever wanted to save arabic text on your mysql database with PHP? here are some few tips you need to do to get rid of ??? character

Make sure that you are using UTF8 everywhere!
  • The browser:
    ("Content-type: text/html; charset=utf-8"); ?>

    You can also use a meta tag that is redundant in theory:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    Also, note that the the
    element has an 'accept-charset' attribute which should also be set:
    <form accept-charset="utf-8" ...>
  • Mysql:
    Make sure that your table's collation is utf8_general_ci and that all string fields within the table also have the utf8_general_ci collation. And here's the really important bit: make sure your client connection is also using UTF-8:
    For mysql:
    or execute the SQL immediately after connection: