Evan_ma 发表于 2007-4-9 17:23:39

SMS编码的问题--UCS2

那位可以介绍一下UCS2编码的相关内容?
还有SMS的字数容量怎么计算出来的阿?
( USSD 160oct 182char
SMS 140oct 160char
   CB 82oct 93char)

majingfeng 发表于 2007-4-10 12:02:07

关于短消息我来给你解答
一条短消息总共有140个byte,如果采用ASCII码的话,那么每位是7个bit, 如此可以计算得出短消息的最大英文字母可以使160个字符。如果采用ucs2编码的话,那么每个字符使用16bit,可以得出最大字符数是70个。这也就是为什么中文短消息的长度70个字符。

Evan_ma 发表于 2007-4-10 12:47:29

谢谢先...

挪威森林 发表于 2007-4-13 10:43:19

in 140 octets, it is possible to pack (140x8)/7=160 characters.
in 82 octets, it is possible to pack (82x8)/7 = 93.7, that is 93 characters. The 5 remaining bits are set to zero as stated above.
in 160 octets, is it possible to pack (160*8)/7 = 182.8, that is 182 characters. The remaining 6 bits are set to zero as stated above.
Do you understand?You can find the answer in 03.38.

Evan_ma 发表于 2007-4-13 16:33:31

ok,I've read the GSM03.38

zengyi2008 发表于 2007-6-14 13:27:51

sdlkfj2
页: [1]
查看完整版本: SMS编码的问题--UCS2