Help for this page

Select Code to Download


  1. or download this
    use encoding "utf-8";                          # For text containing I
    +SO-8859-1 and/or UTF-8 characters
    
  2. or download this
    open (OUT, ">:encoding(UTF-8)", ">$outfile") || die "Unable to open $o
    +utfile for writing.";
    
  3. or download this
    $ENV{NLS_LANG} = 'AMERICAN_AMERICA.AL32UTF8';    # Handle UTF-8 charac
    +ters
    
  4. or download this
    my $dbh = DBI->connect("dbi:Oracle:$DATABASE", $USERNAME, $PASSWORD,
              { RaiseError => 1, AutoCommit => 0, ora_charset => "UTF8" })
              or die ($DBI::errstr . "\n");
    
  5. or download this
    $twig = XML::Twig->new( twig_handlers => $handlers, output_encoding =>
    + 'utf-8' );