Concatenated SMS extended symbols at segments border - what is correct split method?

烈酒焚心 提交于 2019-12-22 12:17:30

问题


For concatenated SMS messages (in GSM encoding), if extended table symbol (one of these: }{[]|~^\€) is placed at the end of segment, what is correct way to split such message:

  1. Leave first byte of symbol (0b) at the end of segment and put second byte to the beginning of next one, and so fill all available bytes of UD (which seems logically correct)

OR

  1. Move whole symbol bytes to the next segment and leave unused byte at the end?

I didn't found any clarification neither in SMPP 3.4 specs or implementation guide nor in GSM 03.38 specs, so assume that method selection is up to content provider or sending software.


回答1:


When you are using a 7-bit encoding, split when you reach 153 characters (whether that is in-between the 1B and the next character or not).




回答2:


I can't think of any reason to prefer option 2 (leave unused byte at the end).

The message should not be rendered unless it's completely received by the subscriber's device. Furthermore, nothing is even represented by 1B septet in GSM7, so even if a device tried to render something unexpected it would fail.



来源:https://stackoverflow.com/questions/32254574/concatenated-sms-extended-symbols-at-segments-border-what-is-correct-split-met

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!