Help for this page

Select Code to Download


  1. or download this
    use utf8;
    use open ':std' => ':encoding(UTF-8)';
    use locale;
    
  2. or download this
    use utf8;
    use CGI qw( -utf8 );
    use open IO => ':utf8';
    ...
    binmode STDIN, ":utf8";
    binmode STDOUT, ":utf8";
    my $dbh = DBI->connect( "dbi:mysql:dbname=$db;host=localhost", $user, 
    +$pwd, {mysql_enable_utf8 => 1 });
    
  3. or download this
    If you have properly set up UTF-8 system, 
    you can just say
    
    ...
    
    and relax. If your situation needs something more 
    complex, continue reading...