title: Why does not PHP accept UTF-8 form data?
body: <p>I'm using ajax. I can track the <code>POST</code> request and see that data is there in the correct state, however, despite the fact that i have</p>
  
  <pre><code>header("Content-Type: text/html;charset=UTF-8");
  mb_internal_encoding("UTF-8");
  </code></pre>
  
  <p>in the beginning of the script, I still get gibberish symbols instead of valid UTF-8 string. What could be the issue?</p>
  
  <p>Here's a part of the html file:</p>
  
  <pre><code>&lt;meta charset="UTF-8"&gt;
  ...
  &lt;div id="form-container" role="form" data-toggle="validator" accept-charset="UTF-8" onsubmit="return false"&gt;
  </code></pre>
  
  <p>Here is what my ajax post looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/xLbll.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xLbll.jpg" alt="enter image description here"></a></p>