title: how to decode_entities in utf8
body: <p>In perl, I am working with the following utf-8 text:</p>
  
  <pre><code>my $string = 'a 3.9 k&amp;#8486; resistor and a 5 µF capacitor';
  </code></pre>
  
  <p>However, when I run the following:</p>
  
  <pre><code>decode_entities('a 3.9 k&amp;#8486; resistor and a 5 µF capacitor');
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>a 3.9 kΩ resistor and a 5 ÂµF capacitor
  </code></pre>
  
  <p>The <code>Ω</code> symbol has successfully decoded, but the <code>µ</code> symbol now has gibberish before it.</p>
  
  <p>How can I use decode_entities while making sure non-encoded utf-8 symbols (such as <code>µ</code>) are not converted to gibberish?</p>