title: How to convert fake characters to real one in PHP?
body: <p>character <code>B</code> can have </p>
  
  <p>HEX code = <code>0x42</code> (real letter) or <code>0x412</code> (fake letter)</p>
  
  <p>DEC code = <code>66</code> (real letter) or <code>1042</code> (fake letter)</p>
  
  <p>HTML with named char ref = <code>B</code> (real letter) or <code>&amp;#x412;</code> (fake letter)</p>
  
  <p>Java string = <code>B</code> (real letter) or <code>\u0412B</code> (fake letter)</p>
  
  <p>When I parse content from remote URL with CURL I see on macOS in both variants letter <code>B</code>. But really it could be not real letter <code>B</code>. I check it with <a href="http://www.mauvecloud.net/charsets/CharCodeFinder.html" rel="nofollow noreferrer">this online tool</a> is letter real or not.</p>
  
  <p>This code helps me for one letter:</p>
  
  <pre><code>$content = str_replace("В", "B", $content);
  </code></pre>
  
  <p>But how can I make the same with PHP for all other illegal characters?</p>