问题描述
我写一个应用程序,它使用SMS管理器。我使用的方法 sendTextMessage()
,但它不工作。现在,我使用 sendMutlipartTextMessage()
和它的工作。但它的发送多部分消息时,它是60个字符。这是正常的吗?无论我阅读比应该是160个字符。这对我很重要,因为我必须付出更多。
I write a app which use SMS Manager. I use method sendTextMessage()
but it isn't work. Now I am using sendMutlipartTextMessage()
and it's work. But it's send multipart message when it is about 60 characters. This is normal? Everywhere I read than should be 160 characters. This is important to me because I must pay more.
推荐答案
该消息字符的限制取决于你所使用的字母的字符位大小。对于标准的GSM 7位字母,字符数限制为160。对于一个8位的字母,它是140,和一个16位的字母,这听起来像您的情况,它只是70个字符。如果你要发送消息的特殊统一code字符,如那些非拉丁字母,那么你坚持了16位的字母,它的70个字符的限制。如果你能以某种方式转换的消息基本7位字母,您将有160个字符的限制。
The message character limit depends on the character bit-size of the alphabet you're using. For the standard GSM 7-bit alphabet, the character limit is 160. For an 8-bit alphabet, it is 140, and for a 16-bit alphabet, which sounds like your situation, it is only 70 characters. If you must send messages with special Unicode characters, like those in non-Latin alphabets, then you're stuck with the 16-bit alphabet, and its 70-character limit. If you can somehow convert the messages to the basic 7-bit alphabet, you will have the 160-character limit.
这篇关于短信管理器发送mutlipart消息时,有不超过160个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!