windows程序设计 Unicode简介
2015-03-31 09:42
344 查看
An Introduction to Unicode
Very simply,Unicode is an extension of ASCII character encoding. Rather than the 7 bitsused to represent each character in strict ASCII, or the 8 bits per characterthat have become common on computers,
Unicode usesa full 16 bits for character encoding. This allows Unicode to represent all theletters, ideographs, and other symbols used in all the written languages of theworld that are likely to be used in computer communication.
Unicode is intendedinitially to supplement ASCII and, with any luck, eventually replace it. Consideringthat ASCII is one of the most dominant standards in computing, this iscertainly a tall order.
Unicodeimpacts every part of the computer industry, but perhaps most profoundlyoperating systems and programming languages. In this respect, we are almosthalfway there. Windows NT supports Unicode
from the ground up. (Unfortunately,Windows 98 includes only a small amount of Unicode support.) The C programming languageas formalized by ANSI inherently supports Unicode through its support of widecharacters, which I'll discuss in detail below.
Understandingthe difference between Unicode and DBCS is essential. Unicode is said to use(particularly in the context of the C programming language) "wide characters."Each
character in Unicode is 16 bits wide rather than 8 bits wide.Eight-bit values have no meaning inUnicode. In contrast, in a double-byte character set we're still dealing with8bit values. Some bytes define characters by themselves, and some bytesindicate
that another byte is necessary to completely define a character.
Very simply,Unicode is an extension of ASCII character encoding. Rather than the 7 bitsused to represent each character in strict ASCII, or the 8 bits per characterthat have become common on computers,
Unicode usesa full 16 bits for character encoding. This allows Unicode to represent all theletters, ideographs, and other symbols used in all the written languages of theworld that are likely to be used in computer communication.
Unicode is intendedinitially to supplement ASCII and, with any luck, eventually replace it. Consideringthat ASCII is one of the most dominant standards in computing, this iscertainly a tall order.
Unicodeimpacts every part of the computer industry, but perhaps most profoundlyoperating systems and programming languages. In this respect, we are almosthalfway there. Windows NT supports Unicode
from the ground up. (Unfortunately,Windows 98 includes only a small amount of Unicode support.) The C programming languageas formalized by ANSI inherently supports Unicode through its support of widecharacters, which I'll discuss in detail below.
Understandingthe difference between Unicode and DBCS is essential. Unicode is said to use(particularly in the context of the C programming language) "wide characters."Each
character in Unicode is 16 bits wide rather than 8 bits wide.Eight-bit values have no meaning inUnicode. In contrast, in a double-byte character set we're still dealing with8bit values. Some bytes define characters by themselves, and some bytesindicate
that another byte is necessary to completely define a character.
相关文章推荐
- windows程序设计——开始、Unicode 简介
- windows程序设计第二章-Unicode简介
- windows程序设计:第二章:Unicode简介
- windows程序设计第二章-Unicode简介
- Windows程序设计[之]Unicode 简介
- windows程序设计之鼠标,键盘,绘制文本简介
- windows程序设计之对话框简介1
- Windows程序设计-宽字符Unicode
- Windows程序设计的UNICODE问题
- windows程序设计-第五版--读书笔记(2)--宽字符集和Unicode--文中内容摘取
- Windows程序设计_Chap02_Unicode_学习笔记
- windows程序设计之菜单简介
- windows程序设计之编辑框简介
- windows程序设计之编辑框简介
- [学习笔记]Windows程序设计:第二章 UNICODE
- windows程序设计之鼠标,键盘,绘制文本简介
- Windows 程序设计学习笔记二:Unicode
- windows程序设计之GDI简介
- windows程序设计学习笔记-Unicode,绘图基础
- Windows程序设计_Chap02_Unicode_学习笔记