$href = "http://mywebsite.com?myperl.cgi?param1="+URIComponent(string); #### #!/usr/bin/perl -w use strict; $| = 1; use CGI qw/:standard :no_xhtml/; use CGI::Carp "fatalsToBrowser"; use HTML::Template; use List::Util qw[ shuffle ]; use URI::Escape; use DBI; use Encode; my $h = new CGI; my $charset = "utf-8"; #print header(-charset=>$charset), print header(), start_html(-title=>"Unicode"); my $compare = "\x{1E02}oo"; my $param1 = param("param1"); //Encode::_utf8_on($param1); if ($compare eq $param1) { print "match"; } print end_html();