Help for this page

Select Code to Download


  1. or download this
    my $open_mode = "<:utf8"; # or "<:encoding(UTF-16LE)" etc.
    open( IN, $open_mode, "unicode_input.txt" );
    ...
       # do stuff with $_, then
       print;
    }
    
  2. or download this
    my %charpinyin;
    
    ...
       my ( $chchar, $pinyin ) = split /\t/;
       $charpinyin{$chchar} = $pinyin;
    }