use Tk; use Tk::widgets qw(Text); my $mw = MainWindow->new; $mw->geometry("+10+10"); #my $font = 'Times'; my $font = 'fixed'; my $t = $mw->Scrolled(Text => -font => [$font => 24, 'normal'])->pack( -fill => 'both', -expand => 1); $file = "t/JP.dat"; open(my $fh,"<:utf8",$file) || die "Cannot open $file:$!"; while (<$fh>) { # s/[^ -~\s]/?/g; $t->insert('end',$_); $t->see('end'); $mw->update; } close($fh); MainLoop; #### 0x0020: ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > 0x0040: @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ 0x0060: ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ 0x8ea0: 。 「 」 、 ・ ヲ ァ ィ ゥ ェ ォ ャ ュ ョ ッ ー ア イ ウ エ オ カ キ ク ケ コ サ シ ス セ 0x8ec0: タ チ ツ テ ト ナ ニ ヌ ネ ノ ハ �‹ フ ヘ ホ マ ミ ム メ モ ヤ ユ ヨ ラ リ ル レ �› ワ ン ゙