title: How to resolve charset utf8 in PHP?
body: <p>I use function <code>htmlspecialchars()</code> in PHP and cyrillic symbols.</p>
  
  <p>I get error:</p>
  
  <blockquote>
    <p>Message: htmlspecialchars(): charset `utf8' not supported, assuming
    utf-8</p>
  </blockquote>
  
  <p>Is there alretnative <code>htmlspecialchars()</code> or solution for this charset?</p>
  
  <p><strong>PHP code:</strong></p>
  
  <pre><code>$text  = htmlspecialchars($text, ENT_QUOTES,$charset);
  </code></pre>