title: Storing pure text from a textarea to a MySQL database correctly
body: <p>I have a big textarea where text can be written.</p>
  
  <pre><code> &lt;textarea class="textarea"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>I'm trying to store pure text (any human language) from this into a database (text field).</p>
  
  <p>The problem: when I copy certain text from other websites some characters return as unicode, for example a <code>’</code> became <code>%u2019</code> (while a <code>´</code> from my own keyboard stays <code>´</code>). I supose this is because it's a different text style/format.</p>
  
  <p>After this there is mysqli_real_escape_string but this seems to be working fine so far.</p>
  
  <p>The question: how can I replace this unicode or avoid inputs like that? I might have forgotten to specify something about text formats (in the header?).  </p>