$opt_query
$opt_help
);
+use utf8;
use Chise_utils ':all';
require 5.008001;
if(&get_db($opt_map)){
foreach $char (sort keys %{$chardb{$opt_map}}){
utf8::decode($char);
- if($chardb{$opt_map}->{$char}){
- print $char,"\t",$chardb{$opt_map}->{$char},"\n";
+ if($value=$chardb{$opt_map}->{$char}){
+ utf8::decode($value);
+ print $char,"\t",$value,"\n";
}
}
}else{
if(&get_reverse_db($opt_rev_map)){
foreach $char (sort keys %{$reverse_chardb{$opt_rev_map}}){
utf8::decode($char);
- if($reverse_chardb{$opt_rev_map}->{$char}){
- print $char,"\t",$reverse_chardb{$opt_rev_map}->{$char},"\n";
+ if($value=$reverse_chardb{$opt_rev_map}->{$char}){
+ utf8::decode($value);
+ print $char,"\t",$value,"\n";
}
}
}else{