1Encode::KR(3pm) Perl Programmers Reference Guide Encode::KR(3pm)
2
3
4
6 Encode::KR - Korean Encodings
7
9 use Encode qw/encode decode/;
10 $euc_kr = encode("euc-kr", $utf8); # loads Encode::KR implicitly
11 $utf8 = decode("euc-kr", $euc_kr); # ditto
12
14 This module implements Korean charset encodings. Encodings supported
15 are as follows.
16
17 Canonical Alias Description
18 --------------------------------------------------------------------
19 euc-kr /\beuc.*kr$/i EUC (Extended Unix Character)
20 /\bkr.*euc$/i
21 ksc5601-raw Korean standard code set (as is)
22 cp949 /(?:x-)?uhc$/i
23 /(?:x-)?windows-949$/i
24 /\bks_c_5601-1987$/i
25 Code Page 949 (EUC-KR + 8,822
26 (additional Hangul syllables)
27 MacKorean EUC-KR + Apple Vendor Mappings
28 johab JOHAB A supplementary encoding defined in
29 Annex 3 of KS X 1001:1998
30 iso-2022-kr iso-2022-kr [RFC1557]
31 --------------------------------------------------------------------
32
33 To find how to use this module in detail, see Encode.
34
36 When you see "charset=ks_c_5601-1987" on mails and web pages, they
37 really mean "cp949" encodings. To fix that, the following aliases are
38 set;
39
40 qr/(?:x-)?uhc$/i => '"cp949"'
41 qr/(?:x-)?windows-949$/i => '"cp949"'
42 qr/ks_c_5601-1987$/i => '"cp949"'
43
44 The ASCII region (0x00-0x7f) is preserved for all encodings, even
45 though this conflicts with mappings by the Unicode Consortium.
46
48 Encode
49
50
51
52perl v5.12.4 2011-06-01 Encode::KR(3pm)