Skip to content

Instantly share code, notes, and snippets.

@unstabler
Created August 20, 2013 07:35
Show Gist options
  • Save unstabler/6278190 to your computer and use it in GitHub Desktop.
Save unstabler/6278190 to your computer and use it in GitHub Desktop.
아햏햏.. Cygwin에서 CP949 문자 깨짐 현상을 해결하기 위해 일본 쪽에서 자주 쓰이는 nkf랑 비슷한 용도의 스크립트.
#!/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