Y
ynduanlian
Unregistered / Unconfirmed
GUEST, unregistred user!
Delphi的帮助中说:
Windows and Linux both support single-byte and multibyte character sets as well as Unicode. In the Unicode character set, each character is represented by two bytes.Thus a Unicode string is a sequence not of inividual bytes but of two-byte words.
------- 这么说Unicode是两个字节表示一个字符了,但是我在网上又查到:
UTF-8:Unicode编码的一种。Unicode用一些基本的保留字符制定了三套编码方式,它们分别UTF-8,UTF-16和UTF-32。在UTF-8中,字符是以8位序列来编码的,用一个或几个字节来表示一个字符。这种方式的最大好处,是UTF-8保留了ASCII字符的编码做为它的一部分。UTF-8俗称“万国码”,可以同屏显示多语种,一个汉字占用3字节。为了做到国际化,网页应尽可能采用UTF-8编码。
现在Unicode又变成了一个或3个字节!
怎么这么乱啊?
Windows and Linux both support single-byte and multibyte character sets as well as Unicode. In the Unicode character set, each character is represented by two bytes.Thus a Unicode string is a sequence not of inividual bytes but of two-byte words.
------- 这么说Unicode是两个字节表示一个字符了,但是我在网上又查到:
UTF-8:Unicode编码的一种。Unicode用一些基本的保留字符制定了三套编码方式,它们分别UTF-8,UTF-16和UTF-32。在UTF-8中,字符是以8位序列来编码的,用一个或几个字节来表示一个字符。这种方式的最大好处,是UTF-8保留了ASCII字符的编码做为它的一部分。UTF-8俗称“万国码”,可以同屏显示多语种,一个汉字占用3字节。为了做到国际化,网页应尽可能采用UTF-8编码。
现在Unicode又变成了一个或3个字节!
怎么这么乱啊?