title: Converting hexadecimal string UTF-16 Perl internal representation
body: <p>I don't know why this code doesn't work:</p>
  
  <pre><code>use strict;
  use warnings;
  use Encode qw/decode/;
  my $entity_unicode = "00A0";
  $entity_unicode = decode("UTF-16", pack('H4', $entity_unicode));
  print $entity_unicode, "\n";
  </code></pre>
  
  <p>It prints out: "UTF-16:Unrecognised BOM a0 at /usr/lib/perl/5.10/Encode.pm line 174.".</p>