title: how to use utf-8 in a perl cgi-bin script?
body: <p>I have the following cgi bin script:</p>
  
  <pre><code> #! /usr/bin/perl
   #
  
   use utf8;
  
   use CGI;
   my $q = CGI-&gt;new();
   my %params = $q-&gt;Vars;
  
   print $q-&gt;header('text/html');
  
   $w = $params{"words"};
  
   print "$w\n";
  </code></pre>
  
  <p>I want to be able to call it as cgi-bin/script.pl?words=É for example, but when I do that, what's printed is not UTF-8, but instead garbled: </p>
  
  <pre><code>   Ã‰ 
  </code></pre>
  
  <p>Is there any way to use cgi-bin with utf8?</p>