title: Properly displaying UTF-8 chars in Perl
body: <p>I am running perl 5, version 24, subversion 3 (v5.24.3) built for MSWin32-x64-multi-thread
  (with 1 registered patch, see perl -V for more detail)  (Active State).</p>
  
  <p>Trying to parse HTML page encoded in UTF-8:
  </p>
  
  <pre><code>$request = new HTTP::Request('GET', $url);
  $response = $ua-&gt;request($request);
  $content = $response-&gt;content();
  </code></pre>
  
  <p>I parse the $content as one giant string using INDEX and SUBSTR functions, that works fine.
  HTML page contains string with value ÖBB and I need to insert it in the database exactly as ÖBB
  When I print it and insert in the db, instead of Ö I get some ascii characters.</p>
  
  <p>NOTE: this question is not database related; MySQL handles utf-8 just fine, so if I insert value "ÖBB" it will take it no problem.</p>
  
  <p>I've looked at great number of similar questions/answers here and in other forums and I am none wiser. </p>
  
  <p>use utf-8 and binmode(STDOUT, ":utf8")  has not worked for me...
  Would greatly appreciate a code snippet that would solve the issue, thank you. </p>