title: How to convert ASCII to UTF-8 in php
body: <p>I have column name ad_text data type is varchar and collation is utf8_general_ci in my database in which few fields are ASCII and few are UTF-8 which i know by using this function mb_detect_encoding()</p>
  
  <p><a href="https://i.stack.imgur.com/Kar9d.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kar9d.jpg" alt="enter image description here"></a></p>
  
  <p>now when i try to display before executing this</p>
  
  <pre><code>mysql_query ("set character_set_results='utf8'");
  </code></pre>
  
  <p>ASCII field convert into utf-8 and display correctly but utf-8 field display like this</p>
  
  <blockquote>
    <p>(Ø¶Ø±ÙˆØ±Øª  Ù„ÙˆÚˆØ±Ø²Ú©ÙˆÚ‘Ø§ Ú©Ø±Ú©Ù¹ Ø§Ù¹Ú¾Ø§Ù†)</p>
  </blockquote>
  
  <p>and when i don't execute above code ASCII field display as this </p>
  
  <blockquote>
    <p>(??????? ??????? ????????)</p>
  </blockquote>
  
  <p>and UTF-8 fields display correctly.</p>