title: TinyMCE UTF-8 saving to MySQL Database
body: <p>I send TinyMCE input to POST (a php file), then save it in MySQL Database.</p>
  
  <p>The input has UTF-8 (Turkish characters). So when I type <code>Türkçe</code> inside the TinyMCE input and send it to post, PHP backend receives this string :</p>
  
  <pre><code>&lt;p&gt;T&amp;uuml;rk&amp;ccedil;e&lt;/p&gt;
  </code></pre>
  
  <p>How can I convert it back to <code>Türkçe</code> so I can save it correctly in MySQL ?</p>
  
  <h2>P.S.:</h2>
  
  <p>MySQL is set to <code>utf8_unicode_ci</code> collation, so it can save UTF-8 characters correctly. </p>
  
  <p>I need to convert them in PHP, I guess.</p>
  
  <p>Or a way for TinyMCE to send them correctly?</p>
  
  <p>Thanks for any help !</p>
  
  <h2>P.S. 2:</h2>
  
  <p>I think that this issue is about TinyMCE itself, so I guess the solution will be converting the TinyMCE output (either in TinyMCE javascript, or the receiving PHP script).</p>
  
  <p>i.e. :  I don't think changing my PHP configuration is the solution.</p>
  
  <h2>P.S. 3</h2>
  
  <p>I guess these characters like <code>&amp;uuml;</code> are the HTML equivalents of Turkish characters, so <code>htmlspecialchars_decode()</code> should work, but it does not accept Turkish characters. Maybe a way for <code>htmlspecialchars_decode</code> to decode UTF-8 Characters ?</p>