Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

Encode::KR

Perl 5 version 20.0 documentation
Recently read

Encode::KR

NAME

Encode::KR - Korean Encodings

SYNOPSIS

  1. use Encode qw/encode decode/;
  2. $euc_kr = encode("euc-kr", $utf8); # loads Encode::KR implicitly
  3. $utf8 = decode("euc-kr", $euc_kr); # ditto

DESCRIPTION

This module implements Korean charset encodings. Encodings supported are as follows.

  1. Canonical Alias Description
  2. --------------------------------------------------------------------
  3. euc-kr /\beuc.*kr$/i EUC (Extended Unix Character)
  4. /\bkr.*euc$/i
  5. ksc5601-raw Korean standard code set (as is)
  6. cp949 /(?:x-)?uhc$/i
  7. /(?:x-)?windows-949$/i
  8. /\bks_c_5601-1987$/i
  9. Code Page 949 (EUC-KR + 8,822
  10. (additional Hangul syllables)
  11. MacKorean EUC-KR + Apple Vendor Mappings
  12. johab JOHAB A supplementary encoding defined in
  13. Annex 3 of KS X 1001:1998
  14. iso-2022-kr iso-2022-kr [RFC1557]
  15. --------------------------------------------------------------------

To find how to use this module in detail, see Encode.

BUGS

When you see charset=ks_c_5601-1987 on mails and web pages, they really mean "cp949" encodings. To fix that, the following aliases are set;

  1. qr/(?:x-)?uhc$/i => '"cp949"'
  2. qr/(?:x-)?windows-949$/i => '"cp949"'
  3. qr/ks_c_5601-1987$/i => '"cp949"'

The ASCII region (0x00-0x7f) is preserved for all encodings, even though this conflicts with mappings by the Unicode Consortium.

SEE ALSO

Encode