close
而String是由ValueType的Char構成
Char為16-bit(2個Byte)數字
表示一個由UTF-16編碼的Unicode字元
在Plane 0或稱為"Basic Multilingual Plane" (BMP)中的Unicode文字
已涵蓋了各種語言常用文字與符號
僅需要一個Char即可表示
而其他Plane的文字則使用兩個Char
Unicode稱為Surrogate pair
所以UTF-16的文字通常是一個16-bit, 也可能是2個16-bit
(也就是2個Byte或4個Byte)
而UTF-8的文字則是1個Byte到4個Byte都有可能
UTF-32的文字就固定是1個32-bit(4個Byte)
Char為16-bit(2個Byte)數字
表示一個由UTF-16編碼的Unicode字元
在Plane 0或稱為"Basic Multilingual Plane" (BMP)中的Unicode文字
已涵蓋了各種語言常用文字與符號
僅需要一個Char即可表示
而其他Plane的文字則使用兩個Char
Unicode稱為Surrogate pair
所以UTF-16的文字通常是一個16-bit, 也可能是2個16-bit
(也就是2個Byte或4個Byte)
而UTF-8的文字則是1個Byte到4個Byte都有可能
UTF-32的文字就固定是1個32-bit(4個Byte)
全站熱搜
留言列表