Jump to content

Unified Hangul Code

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by HarJIT (talk | contribs) at 20:29, 19 February 2019 (Terminology). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Unified Hangul Code
Layout of the Unified Hangul Code
Alias(es)Windows Code Page 949, IBM Code Page 1363
Language(s)Korean
StandardWHATWG Encoding Standard (as "EUC-KR")[1]
ClassificationExtended ISO 646,[a] Variable-width encoding, CJK encoding
ExtendsEUC-KR
  1. ^ Not in the strictest sense of the term, as ASCII bytes can appear as trail bytes, although this is limited to letter bytes.

Unified Hangul Code (UHC,[2] Template:Lang-ko) or Extended Wansung,[3] also known under Microsoft Windows as Code Page 949 (Windows-949, MS949 or ambiguously CP949), is the Microsoft Windows code page for the Korean language. It is an extension of Wansung Code (KS C 5601:1987, encoded as EUC-KR) to include all 11172 Hangul syllables present in Johab (KS C 5601:1992 annex 3).[3][2] This corresponds to the pre-composed syllables available in Unicode 2.0 and later.

Wansung Code has the drawback that it only assigns codes for the 2350 precomposed Hangul syllables which have their own KS X 1001 codepoints (out of 11172 in total, not counting those using obsolete jamo), and requires others to use eight-byte composition sequences, which are not supported by some partial implementations of the standard.[4] UHC resolves this by assigning single codes for all possible syllables constructed using modern jamo, by making assignments outside of the encoding space used for KS X 1001.

Terminology

Unified Hangul Code is not registered with IANA as a standard to communicate information over the Internet.[5] Alternatives include UTF-8. However, the W3C/WHATWG Encoding Standard used by HTML5 incorporates the Unified Hangul Code extensions into its definition of "EUC-KR".[1]

Microsoft assigns Windows-949 the label "ks_c_5601-1987",[6][7] which properly applies to KS X 1001 itself (KS C 5601 being the original name of KS X 1001). The WHATWG treat the label "ks_c_5601-1987" interchangeably with "EUC-KR" with the intent of being "compatible with deployed content".[8] The Unicode Consortium's "OBSOLETE/EASTASIA" collection of withdrawn mappings included mappings for Unified Hangul Code as "KSC5601.TXT", with the automatically derived mappings for 7-bit KS X 1001 being included as "KSX1001.TXT".[9]

IBM's code page 949 is another, otherwise unrelated, extension of EUC-KR. International Components for Unicode (ICU) uses "cp949", "949" or "ibm-949" to refer to that IBM code page,[10] and "ms949" or "windows-949" (or several variants of "ks_c_5601-1987") to refer to the Windows mapping of UHC.[11] Python, by contrast, recognises "cp949", "949", "ms949" and "uhc" as labels for UHC, and does not include an IBM-949 codec.[12] Out of the labels incorporating the code page number, the WHATWG recognise only "windows-949".[8]

IBM's code page for Unified Hangul Code is called Code page 1363 (IBM-1363), or "Korean MS-Win". It is a combination of Code page 1126 and Code page 1362.[13] It differs in having a single byte mapping of 0x5C to the Won sign (U+20A9);[14] Windows maps 0x5C to U+005C (the Unicode code point for the backslash) as in ASCII,[11] although fonts often still render it as a Won sign.[15] The IBM mapping for UHC is available as "ibm-1363" in ICU.[14]

References

  1. ^ a b "5. Indexes (§ index EUC-KR)", Encoding Standard, WHATWG
  2. ^ a b "INFO: Hangul (Korean) Character Sets", Microsoft Support, Microsoft
  3. ^ a b Zsigri, Gyula (2002-06-18). "KSC and UHC".
  4. ^ Shin, Jungshik. "What are KS X 1001(KS C 5601) and other Hangul codes?". Hangul & Internet in Korea FAQ.
  5. ^ "Character Sets". Iana.org. Retrieved 2017-01-11.
  6. ^ "Encoding.WindowsCodePage Property - .NET Framework (current version)". MSDN. Microsoft.
  7. ^ "Code Page Identifiers", Windows Dev Center, Microsoft
  8. ^ a b "4.2. Names and labels". Encoding Standard. WHATWG.
  9. ^ Jungshik Shin. "KSX1001.TXT: KS X 1001 to Unicode table". Unicode, Inc.
  10. ^ "ibm-949_P110-1999 (alias cp949)", Converter Explorer, International Components for Unicode
  11. ^ a b "windows-949-2000", Converter Explorer, International Components for Unicode
  12. ^ "codecs — Codec registry and base classes § Standard Encodings". Python 3.7.2 documentation. Python Software Foundation.
  13. ^ "Coded character set identifiers - CCSID 1363", IBM Globalization, IBM, archived from the original on 2014-11-29 {{citation}}: Unknown parameter |dead-url= ignored (|url-status= suggested) (help)
  14. ^ a b "ibm-1363", Converter Explorer, International Components for Unicode
  15. ^ Kaplan, Michael S. (2005-09-17), "When is a backslash not a backslash?", Sorting it all out