UNICODE:简介
来自康健生活
简介
UNICODE字符集采用16位编码体系,其字符集内容与ISO10646的BMP(Basic Multilingual Plane)相同。Unicode于1992年6月通过DIS(Draf International Standard),目前版本V2.0于1996公布,内容包含符号6811个,汉字20902个,韩文拼音11172个,造字区6400个,保留20249个,共计65534个。
| 编码系统 | 国际标准 | 用途 | 兼容 | 组织 | 组织合作 |
|---|---|---|---|---|---|
| 双字节 | ISO/IEC10646 | 全球所有文种统一编码,适用于多文种处理的字符编码 | ISO-8859-1 | 国际标准化组织(ISO)、Unicode Consortium | 国际标准组织于1984年4月成立ISO/IEC JTC1/SC2/WG2工作组,美国的HP、Microsoft、IBM、Apple等大企业于1991年组成联盟集团UNICODE,1991年双方开始合作,从Unicode2.0开始Unicode项目采用了与ISO 10646-1相同的字库和字码 |
ISO/IEC 10646与UNICODE的版本对应关系。
| ISO/IEC 10646版本 | Unicode版本 |
|---|---|
| ISO/IEC 10646-1:1993 | Unicode 1.1 |
| ISO/IEC 10646-1:2000 | Unicode 3.0 |
| ISO/IEC 10646-2:2001 | Unicode 3.2 |
| ISO/IEC 10646:2003 | Unicode 4.0 |
| ISO/IEC 10646:2003 plus Amendment 1 | Unicode 4.1 |
| ISO/IEC 10646:2003 plus Amendment 1, Amendment 2, and part of Amendment 3 | Unicode 5.0 |
| ISO/IEC 10646:2003 plus Amendments 1 to 4 | Unicode 5.1 |
| ISO/IEC 10646:2003 plus Amendments 1 to 6 | Unicode 5.2 |
| ISO/IEC 10646:2011 | Unicode Unicode 6.0 |
UNICODE使用一个确定的名字和一个叫做码位(code point)的整数映射字符。例如©字符被命名为“copyright sign”并且有一个值为U+00A9(0xA9,十进制169)的码位。
| 码位(code point)数量 | 码空间范围 | 字符数量 | |
|---|---|---|---|
| UNICODE | 1114112 | U+000000 - U+10FFFF | 2¹⁶ = 65536 |
UNICODE使用平面来描述编码空间。每个平面分为256行。256列。相对于两字节编码的高低两个字节。
| 平面(plane) | 命名 | 码位数量 | 码位范围 | 描述 | 备注 |
|---|---|---|---|---|---|
| 第1个平面 | 基本多语言平面(Basic Multilingual Plane,BMP) | 216 = 65536 | U+xx0000 - U+xxFFFF | 包含常用的字符 | D800 - DFFF码位区段永久保留不映射到字符 |
| 第2 - 17个平面 | 辅助平面(Supplementary Planes) | 16*216 = 1048576 |
UNICODE同现在流行的代码页最显著不同点在于:UNICODE是两字节的全编码。对于ASCII字符它也使用两字节表示。代码页是通过高字节的取值范围来确定是ASCII字符。还是汉字的高字节。如果发生数据损坏。某处内容破坏。则会引起其后汉字的混乱。UNICODE则一律使用两个字节表示一个字符。最明显的好处是它简化了汉字的处理过程。
| UTF编码方案(Unicode Consortium维护管理) | UTF-8 | UTF-16 | UTF-32 | UTF-7 |
| UCS编码方案(ISO/IEC维护管理) |
UTF-8中字符以8位来编码,保留了ASCII字符的编码做为它的一部分。
General
| Basic Latin | Buhid | Gothic | Lao | Osmanya | Thaana | CJK Compatibility | Hangul Compatibility Jamo |
| Latin-1 Supplement | Canadian Aboriginal Syllabics | Greek and Coptic | Limbu | Runic | Thai | CJK Compatibility Forms | Hangul Jamo |
| Latin Extended-A | Cherokee | Greek Extended | Linear B Ideograms | Shavian | Tibetan | CJK Compatibility Ideographs | Hangul Syllables |
| Latin Extended-B | Cypriot Syllabary | Gujarati | Linear B Syllabary | Sinhala | Ugaritic | CJK Compatibility Ideographs Supplement | Hiragana |
| Latin Extended Additional | Cyrillic | Gurmukhi | Malayalam | Syriac | Yi Radicals | CJK Radicals Supplement | Ideographic Description Characters |
| IPA Extensions | Cyrillic Supplementary | Hanun | Mongolian | Mongolian | Tagalog Yi Syllables | CJK Symbols and Punctuation | Kanbun |
| Phonetic Extensions | Deseret | Hebrew | Myanmar | Tagbanwa | Combining Diacritical Marks | CJK Unified Ideographs | KangXi Radicals |
| Arabic | Devanagari | Kannada | Ogham | Tai Le | Spacing Modifier Letters | CJK Unified Ideographs Extension A | Katakana |
| Armenian | Ethiopic | Khmer | Old Italic | Tamil | Bopomofo | CJK Unified Ideographs Extension B | Katakana Phonetic Extensions |
| Bengali | Georgian | Khmer Symbols | Oriya | Telugu | Bopomofo Extended | Enclosed CJK Letters and Months |
Symbols and Miscellaneous
| Arrows | Box Drawing | Control Pictures | General Punctuation | Miscellaneous Mathematical Symbols-A | Miscellaneous Symbols | Number Forms | Yijing Hexagram Symbols |
| Supplemental Arrows-A | Braille Patterns | Currency Symbols | Geometric Shapes | Miscellaneous Mathematical Symbols-B | Miscellaneous Symbols and Arrows | Optical Character Recognition | |
| Supplemental Arrows-B | Byzantine Musical Symbols | Dingbats | Letterlike Symbols | Mathematical Operators | Miscellaneous Technical | Superscripts and Subscripts | |
| Block Elements | Combining Diacritical Marks for Symbols | Enclosed Alphanumerics | Mathematical Alphanumeric Symbols | Supplemental Mathematical Operators | Musical Symbols | Tai Xuan Jing Symbols |