title: Storing persian\Arabic text in mysql database
body: <p>I have a column with nickname that it's collection is <code>utf8-general-ci</code> and table collection is UTF-8. But persian/arabic text stores in it like below.</p>
  
  <p><a href="http://i.stack.imgur.com/CCWOa.png" rel="nofollow">http://i.stack.imgur.com/CCWOa.png</a></p>
  
  <p>How should Solve this problem?</p>
  
  <p>I use this code to save</p>
  
  <pre><code>$sql = "INSERT INTO kashef_users(nickname ,username ,email ,ostan ,age ,gender ,sdk ,phonename ,imei ,time ) VALUES ".$data;
  </code></pre>
  
  <p><code>$data</code> contains a a string and everything in data is correct</p>