# Code page 949 (IBM)

IBM code page 949 (IBM-949) is a character encoding which has been used by IBM to represent Korean language text on computers. It is a variable-width encoding which represents the characters from the Wansung code defined by the South Korean standard KS X 1001 in a format compatible with EUC-KR, but adds IBM extensions for additional hanja, additional precomposed Hangul syllables, and user-defined characters.
Giving values in hexadecimal, bytes 0x00 through 0x7F are used for single byte KS X 1003 (ISO 646:KR) characters, a similar set to ASCII but with a won sign rather than a backslash. Bytes 0x80 through 0x84 are used for IBM single byte extension characters. Lead bytes 0x8F through 0xA0 are used for IBM double byte extension characters. Lead bytes 0xA1 through 0xFE are used for Wansung code (KS X 1001 characters in EUC-KR form, double byte), but with some unused space opened up for user-defined use.
Although both are sometimes named "cp949", IBM-949 is different from Windows code page 949 (IBM-1363), which is Microsoft's Unified Hangul Code, a different extension of EUC-KR. It should also not be confused with IBM's implementation of plain EUC-KR (IBM-970). Code page 949 in OS/2 is the IBM code page; however, a third-party patch exists to change this.

## Terminology and encoding labelling

Both IBM-949 and Unified Hangul Code (Windows-949) are known as "code page 949" (or "cp949") although they share only the EUC-KR subset in common. Neither has a standardised IANA-registered label to identify it. Although UHC is included in the WHATWG Encoding Standard, with labels including "windows-949", IBM-949 is not. IBM-949 therefore is not permitted in HTML5.
Although the meaning of the label "ibm-949" (and conversely "windows-949" and "ms949") is unambiguous where these labels are supported, the interpretation of the encoding labels "949" and "cp949" consequently varies between implementations. For example, International Components for Unicode uses "cp949", "949", "ibm-949" and "x-IBM949" to refer to IBM-949, and additionally the labels "cp949c", "ibm-949c" and "x-IBM949C" to refer to an variant which uses unmodified ASCII mappings for 0x20–7E (resulting in duplicate mappings for the backslash), while (of the labels incorporating the code page number 949) only "ms949" and "windows-949" are assigned to UHC. This is in contrast to Python, which recognises both "cp949" and "949" (in addition to the more explicit "ms949" and "uhc", but not "windows-949") as labels for UHC, and does not include an IBM-949 codec. The code page 949 used by Korean language versions of OS/2 is the IBM code page; to add support for the entire Unicode set of Korean syllables, a third-party patch exists to replace it with the Microsoft code page.
IBM-949 is a variable width encoding defined as the combination of two fixed-width code pages, the single-byte Code page 1088 and the double-byte Code page 951.

## History

A version of Code page 951 (a DBCS-PC, i.e. double-byte non-EUC non-EBCDIC, code), the double-byte component for IBM-949, is defined in the September 1992 revision of IBM Corporate Specification C-H 3-3220-125, along with Code page 834 (a DBCS-Host, i.e. double-byte EBCDIC, code), which is the double byte component of Code page 933. This version of Code page 949/951 considered the entire lead byte range 0x8F–A0 to be a user-defined region, and included only standard Wansung assignments and user-defined areas, thus not including some characters which Code page 933/834 included. Some later versions, such as that implemented by International Components for Unicode (ICU), shrink the user-defined region to include these characters as extensions.
The earlier October 1989 revision of C-H 3-3220-125 had instead defined Code page 926 as its DBCS-PC code, which encoded the same characters as IBM-834 in a layout differing from both IBM-951 and IBM-834, which had a different lead byte range and was not an EUC-KR extension. IBM-926 was combined with Code page 891 or Code page 1040 (respectively 8-bit N-byte Hangul Code and an extension thereof; compare how Shift JIS extends 8-bit JIS X 0201) to form IBM-934 or IBM-944 respectively.
Code page 944/926 are now deprecated in favour of IBM-949. The 1992 revision designates code page 926 as "restricted" ("limited to the particular environment for which [it is] registered") and does not give its chart or mappings from the other code pages, and CCSID 944 is categorised as "coexistence and migration" (contrast "interoperable" for CCSID 949). International Components for Unicode includes Unicode mappings for IBM-949 and IBM-933, but its IBM-944 mapping was removed in 2001.

## Single byte codes

IBM code page 949 (single byte component: 1088) :
| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| 0x | NUL | ┌ | ┐ | └ | ┘ | │ | ─ | • | ◘ | ○ | ◙ | ♂ | ♀ | ♪ | ♫ | ☼ |
| 1x | ┼ | ◄ | ↕ | ‼ | ¶ | ┴ | ┬ | ┤ | ↑ | ├ | → | ← | ∟ | ↔ | ▲ | ▼ |
| 2x | SP | ! | " | # | $ | % | & | ' | ( | ) | * | + | , | - | . | / |
| 3x | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | : | ; | < | = | > | ? |
| 4x | @ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O |
| 5x | P | Q | R | S | T | U | V | W | X | Y | Z | [ | ₩ | ] | ^ | _ |
| 6x | ` | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o |
| 7x | p | q | r | s | t | u | v | w | x | y | z | { | | | } | ~ | ⌂ |
| 8x | ¢ | ¬ | \ | ‾ | ¦ | | | | | | | | | | | 8F |
| 9x | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 9A | 9B | 9C | 9D | 9E | 9F |
| Ax | A0 | 1-_ | 2-_ | 3-_ | 4-_ | 5-_ | 6-_ | 7-_ | 8-_ | 9-_ | 10-_ | 11-_ | 12-_ | 13-_ | 14-_ | 15-_ |
| Bx | 16-_ | 17-_ | 18-_ | 19-_ | 20-_ | 21-_ | 22-_ | 23-_ | 24-_ | 25-_ | 26-_ | 27-_ | 28-_ | 29-_ | 30-_ | 31-_ |
| Cx | 32-_ | 33-_ | 34-_ | 35-_ | 36-_ | 37-_ | 38-_ | 39-_ | 40-_ | 41-_ | 42-_ | 43-_ | 44-_ | 45-_ | 46-_ | 47-_ |
| Dx | 48-_ | 49-_ | 50-_ | 51-_ | 52-_ | 53-_ | 54-_ | 55-_ | 56-_ | 57-_ | 58-_ | 59-_ | 60-_ | 61-_ | 62-_ | 63-_ |
| Ex | 64-_ | 65-_ | 66-_ | 67-_ | 68-_ | 69-_ | 70-_ | 71-_ | 72-_ | 73-_ | 74-_ | 75-_ | 76-_ | 77-_ | 78-_ | 79-_ |
| Fx | 80-_ | 81-_ | 82-_ | 83-_ | 84-_ | 85-_ | 86-_ | 87-_ | 88-_ | 89-_ | 90-_ | 91-_ | 92-_ | 93-_ | 94-_ | |

## Double byte codes
### Lead bytes 0x8F–99, 0xC9, 0xFE (user-defined ranges)

IBM-949 is designed to support a maximum of 1880 UDC (user-defined characters), including the user-defined rows (lead bytes 0xC9 and 0xFE) of the Wansung plane, and ranges outside the Wansung plane. In this version, the lead bytes 0x8F–A0 contain a maximum of 1692 UDC, and lead bytes 0xC9 and 0xFE contain a maximum of 94 each (i.e. with trail bytes 0xA1–FE). However, when the extensions to support the entire double-byte repertoire of IBM-933 are implemented, they use lead bytes 0x9A–A0, resulting in a smaller maximum number of characters left for user definition.
When mapped to Unicode, 0xC9A1–C9FE (between the syllable and hanja ranges) are mapped to the Unicode Private Use Area code points U+E000–E05D, while 0xFEA1–FEFE (between the end of the hanja range and the end of the plane) are mapped to U+E05E–E0BB. Outside the Wansung plane, 0x8FA0–9AA5 (where the second byte is in the range 0xA1–FE) are mapped to the Private Use Area code points U+E0BC–E4CA. The last of these ranges cuts into the start of the 0x9A row (shown below).
Collectively these private use ranges cover the code points U+E000–E4CA, allowing 1227 UDC to be mapped from IBM-949 to Unicode. The separate private use area range U+F843–F86E is used by IBM to map some characters within the extended hanja range. This follows early recommendations from the Unicode Consortium that corporate characters be allocated from U+F8FF downward and user-defined characters be allocated from U+E000 upward, and is part of a larger corporate private use area scheme which is defined internally by IBM, and uses the range U+F83D–F8FF.

### Lead bytes 0x9A–9D (extended symbols and hanja)

According to the 1992 specification, this entire range is user-defined. As implemented in the codec contributed to ICU by IBM, however, 0x9AA1 through 0x9AA5 are the end of the user-defined range. The remainder of this range includes some non-Hangul characters included in Code page 933 but not in Wansung code. 0x9AA6 through 0x9AAB contain miscellaneous technical or mathematical symbols. The remainder contains hanja additional to those included in KS X 1001, although some are mapped by IBM to the Private Use Area.
IBM code page 949 (extended symbols and hanja) :
| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| 9AAx | |  |  |  |  |  | ǂ | ≦ | ≧ | K | ￤ | ʺ | 喀 | 擱 | 羯 | 酣 |
| 9ABx | 醵 | 骼 | 蒹 | 哽 | 扃 | 檠 | 熲 | 畊 | 稧 | 雞 | 杲 | 瞽 | 詁 | 栱 | 槓 | 箜 |
| 9ACx | 蝌 | 霍 | 盥 | 鸛 | 鉸 | 佝 | 傴 | 媾 | 嫗 | 晷 | 甌 | 覯 | 颶 | 掬 | 跪 | 巹 |
| 9ADx | 漌 | 岌 | 笈 | 覇 | 鰭 | 唜 | 糯 | 喃 | 曩 | 迺 | 佞 | 獰 | 孥 | 鬧 | 靼 | 怛 |
| 9AEx | 闥 | 韃 | 党 | 蟷 | 碓 | 菟 | 咄 | 垌 | 肚 | 蚪 | 滕 | 灯 | 鐙 | 犖 | 幱 | 埓 |
| 9AFx | 榔 | 涼 | 魎 | 癘 | 膂 | 蠡 | 鑢 | 櫟 | 鬣 | 昤 | 泠 | 苓 | 蛉 | 潦 | 艫 | |
| 9BAx | | 轤 | 漉 | 祿 | 轆 | 籟 | 蕾 | 誄 | 寥 | 僂 | 髏 | 窿 | 凛 | 廩 | 提 | 漓 |
| 9BBx | 离 | 螭 | 魑 | 痳 | 岦 | 媽 | 蟇 | 謾 | 鏝 | 鬘 | 魍 | 眛 | 苺 | 脉 | 俛 | 耄 |
| 9BCx | 鉾 | 濛 | 矇 | 瀰 | 糜 | 閩 | 婆 | 欂 | 牔 | 胖 | 髣 | 魴 | 潘 | 翻 | 辟 | 汴 |
| 9BDx | 辮 | 遍 | 駢 | 彆 | 迸 | 鴇 | 黼 | 蝠 | 丰 | 葑 | 仆 | 罘 | 苻 | 蜉 | 頫 | 鮒 |
| 9BEx | 吟 | 蕡 | 巿 | 髴 | 黻 | 妣 | 沙 | 沘 | 睥 | 篦 | 腓 | 轡 | 髀 | 擯 | 蘋 | 贇 |
| 9BFx | 顰 | 鬢 | 姒 | 麝 | 楂 | 槎 | 笥 | 槊 | 鑠 | 歃 | 鍤 | 霎 | 殤 | 鰓 | 噬 | |
| 9CAx | | 婿 | 齟 | 射 | 單 | 尠 | 愃 | 洗 | 燹 | 霰 | 偰 | 契 | 挈 | 艘 | 霄 | 蟀 |
| 9CBx | 瑣 | 叟 | 宿 | 晬 | 溲 | 祟 | 雎 | 鶉 | 虱 | 啻 | 寺 | 緦 | 矧 | 瑟 | 萼 | 贋 |
| 9CCx | 鴈 | 戞 | 遏 | 嵒 | 諳 | 黯 | 鞅 | 欸 | 皚 | 礙 | 靉 | 阨 | 射 | 篛 | 籥 | 羘 |
| 9CDx | 敔 | 恚 | 射 | 羨 | 臙 | 蠕 | 讌 | 塩 | 饜 | 嬰 | 睨 | 翳 | 蕋 | 遨 | 媼 | 薀 |
| 9CEx | 鰮 | 蕘 | 舂 | 蛹 | 吁 | 熨 | 蜿 | 幃 | 衞 | 囿 | 帷 | 蕤 | 黝 | 鬻 | 檼 | 珢 |
| 9CFx | 齦 | 挹 | 栮 | 頣 | 仞 | 眥 | 粢 | 耔 | 觜 | 赭 | 柞 | 潜 | 蚕 | 嶂 | 瘴 | |
| 9DAx | | 装 | 纔 | 柢 | 蛆 | 豬 | 糴 | 囀 | 巓 | 磚 | 翦 | 窃 | 椄 | 梃 | 晢 | 瑅 |
| 9DBx | 踶 | 吊 | 噪 | 皁 | 竈 | 笊 | 糶 | 絛 | 鯛 | 樅 | 蹤 | 蔟 | 肘 | 隼 | 則 | 証 |
| 9DCx | 痣 | 湌 | 慚 | 刱 | 悵 | 氅 | 簀 | 蜴 | 躑 | 濺 | 簷 | 蜻 | 砌 | 靆 | 峭 | 綃 |
| 9DDx | 鈔 | 鞘 | 數 | 躅 | 髑 | 怱 | 葱 | 摧 | 槌 | 甃 | 箒 | 鞦 | 麁 | 麤 | 杻 | 舳 |
| 9DEx | 冲 | 橇 | 贅 | 巵 | 徴 | 鵄 | 忱 | 拆 | 橐 | 駄 | 幀 | 蝙 | 庖 | 炮 | 舖 | 鉋 |
| 9DFx | 鞄 | 分 | 蓖 | 蹕 | 瘧 | 邯 | 鷳 | 炕 | 廨 | 慊 | 篋 | 陜 | 皞 | 醐 | 鶻 | |

### Lead bytes 0x9E–A0 (extended hanja and hangul syllables)

According to the 1992 specification, this entire range is user-defined. As implemented in the codec contributed to ICU by IBM, 0x9EA1 through 0x9EAC contain the remainder of the extended hanja. The rest of the range contains a few additional Hangul syllables which are not available in pre-composed form in pure EUC-KR. Unlike Unified Hangul Code, this is insufficient to support all non-partial Johab syllables absent in Wansung code.
Significant amongst these are 뢔 (0x9EFC), 쌰 (0x9FE6), 쎼 (0x9FED), 쓔 (0x9FF3) and 쬬 (0xA0C1), which correspond to the beginnings of the standard Wansung characters 뢨, 썅, 쏀, 쓩, and 쭁 respectively, when partly entered in an input method editor.
IBM code page 949 (extended hanja and hangul syllables) :
| | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F |
| 9EAx | | 鑊 | 圜 | 懽 | 鬟 | 媓 | 怳 | 囂 | 猴 | 篌 | 忻 | 迄 | 頡 | 갂 | 갋 | 걹 |
| 9EBx | 겇 | 겓 | 곩 | 곺 | 괙 | 괨 | 괫 | 궛 | 귕 | 귬 | 긂 | 긏 | 긑 | 긧 | 긼 | 깄 |
| 9ECx | 깉 | 깢 | 꺠 | 꼄 | 꼳 | 꽌 | 꽘 | 꽛 | 꽨 | 꾓 | 꾲 | 꾿 | 꿘 | 꿧 | 뀍 | 뀡 |
| 9EDx | 끠 | 낐 | 낻 | 냬 | 넏 | 넞 | 녇 | 녓 | 녙 | 녯 | 녺 | 놧 | 놰 | 눳 | 늧 | 닁 |
| 9EEx | 닑 | 닠 | 댱 | 댸 | 덨 | 덪 | 뎜 | 돓 | 됀 | 됏 | 됬 | 둗 | 둿 | 뒴 | 듁 | 듧 |
| 9EFx | 딮 | 딲 | 딷 | 딿 | 땨 | 떄 | 뗴 | 뚀 | 뚸 | 뜌 | 럐 | 렏 | 뢔 | 룜 | 뤗 | |
| 9FAx | | 릐 | 맟 | 맻 | 먜 | 멫 | 멭 | 몀 | 몯 | 뫃 | 뫠 | 믁 | 믕 | 믜 | 믠 | 밎 |
| 9FBx | 밨 | 밷 | 뱜 | 뱨 | 벘 | 벜 | 벹 | 볌 | 볒 | 볓 | 볔 | 봣 | 붗 | 붴 | 븘 | 븡 |
| 9FCx | 븨 | 빋 | 뺜 | 뺴 | 뻭 | 뻰 | 뻴 | 뻿 | 뼤 | 뽜 | 뽸 | 뿀 | 뿕 | 뿝 | 뿨 | 쀄 |
| 9FDx | 쀠 | 쁙 | 쁴 | 삮 | 삷 | 삻 | 샃 | 샇 | 샏 | 섥 | 섿 | 셑 | 셗 | 솓 | 솻 | 슌 |
| 9FEx | 슳 | 싀 | 싦 | 쌂 | 쌋 | 쌧 | 쌰 | 썃 | 썌 | 썻 | 쎅 | 쎙 | 쎠 | 쎼 | 쏼 | 쐿 |
| 9FFx | 쑷 | 쒓 | 쓓 | 쓔 | 씼 | 씿 | 앏 | 앟 | 얐 | 얫 | 얶 | 엱 | 엳 | 옝 | 옫 | |
| A0Ax | | 옺 | 욷 | 웟 | 윋 | 윶 | 읻 | 잧 | 잪 | 젇 | 젔 | 젛 | 젹 | 졋 | 좐 | 좜 |
| A0Bx | 좠 | 좬 | 좰 | 좸 | 죨 | 죰 | 죱 | 줫 | 쥭 | 즤 | 짔 | 쨰 | 쩗 | 쩰 | 쪗 | 쪠 |
| A0Cx | 쫒 | 쬬 | 쮀 | 쯥 | 쯰 | 찟 | 찦 | 찯 | 찿 | 챂 | 챱 | 챼 | 쳣 | 쳥 | 쵀 | 췃 |
| A0Dx | 츼 | 칻 | 캗 | 캩 | 컈 | 컽 | 켙 | 쾍 | 쾐 | 쾟 | 쾬 | 쾽 | 킈 | 턔 | 텠 | 텩 |
| A0Ex | 퉷 | 튓 | 틍 | 틧 | 팊 | 팦 | 퍙 | 퍠 | 펲 | 펵 | 폇 | 퐤 | 풰 | 퓩 | 픅 | 픐 |
| A0Fx | 픙 | 픠 | 픤 | 핟 | 핡 | 핬 | 핱 | 햬 | 헏 | 혬 | 횩 | 횸 | 훕 | 휌 | 흭 | |