use CGI; my $cgi=CGI->new(); print CGI->header( -charset=>'utf-8');