Created
August 20, 2013 07:35
-
-
Save unstabler/6278190 to your computer and use it in GitHub Desktop.
아햏햏..
Cygwin에서 CP949 문자 깨짐 현상을 해결하기 위해 일본 쪽에서 자주 쓰이는 nkf랑 비슷한 용도의 스크립트.
This file contains hidden or 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 utf8; | |
use strict; | |
use warnings; | |
use Encode qw/decode/; | |
binmode STDOUT, ":utf8"; | |
local $| = 1; | |
my $enc = ($ARGV[0]?$ARGV[0]:"cp949"); | |
print decode($enc, $_) while <STDIN>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment