Created
April 26, 2010 05:33
-
-
Save punytan/379007 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゛゜ | |
。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚ | |
ヴガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ヴガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
0123456789 | |
0123456789 | |
!”#$%&’()*+,-./:;<=>?@[¥]^_‘{|}~ | |
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ | |
をぁぃぅぇぉゃゅょっあいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわんゐゑ | |
がぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽ | |
う゛ | |
ヲァィゥェォャュョッアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワンヰヱ | |
ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ヴ | |
ヲァィゥェォャュョッアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン | |
ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン ゙ ゚ | |
。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン | |
ヴガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ヴガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
0123456789 | |
0123456789 | |
!”#$%&’()*+,-./:;<=>?@[¥]^_‘{|}~ | |
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ | |
をぁぃぅぇぉゃゅょっあいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわんゐゑ | |
がぎぐげござじずぜぞだぢづでどばびぶべぼぱぴぷぺぽ | |
う ゙ | |
ヲァィゥェォャュョッアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワンヰヱ | |
ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ | |
ヴ | |
ヲァィゥェォャュョッアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン | |
ガギグゲゴザジズゼゾダヂヅデドバビブベボパピプペポ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode; | |
use Unicode::Normalize qw/NFKC/; | |
my $infile = shift @ARGV; | |
my $text; | |
open my $fh1, '<', $infile; | |
while (<$fh1>) { | |
$text .= decode_utf8($_); | |
} | |
close $fh1; | |
$text = NFKC $text; | |
open my $fh2, '>', "$infile.out"; | |
print {$fh2} encode_utf8($text); | |
close $fh2; | |
__END__ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment