“data_coding”的含义SMPP中的字段 [英] Meaning of "data_coding" field in SMPP
问题描述
data_coding字段在 SMPP 协议?
我搜索过,但找不到任何有用的资源。
I searched for this but couldn't find any helpful resource.
推荐答案
简而言之,数据编码包含有关smpp
SubmitSM(即典型的SMS消息)消息中的文本如何编码的信息。 SubmitSM数据包
包含一个二进制编码体,dataCoding是文本中如何存储
。
In short, datacoding contains the information on how the text in an smpp SubmitSM (i.e. a typical SMS message) message is encoded. The SubmitSM packet contains a binary encoded body, and the dataCoding is how the text is stored in this body.
最重要的值是:
- 00000000 (0) - 通常GSM7 (消息的默认7位编码,几个字符编码为两个字节),但在技术上可以是其他的东西
- 00000011 (3)标准ISO-8859-1
- 00001000 (8)为通用字符集 - 事实上UTF-16
- 00000000 (0) - usually GSM7 (the default 7 bit encoding for messages, with a few characters that are encoded as two bytes), but technically could be something else
- 00000011 (3) for standard ISO-8859-1
- 00001000 (8) for the universal character set -- de facto UTF-16
其他可能的值(很少使用):
Other possible values (rarely used):
- 00000001 - IA5_CCITT_T_50_ASCII_ANSI_X3_4
- 00000010 - OCTET_UNSPECIFIED_8BIT_BINARY_1
- 00000100 - OCTET_UNSPECIFIED_8BIT_BINARY_2
- 00000101 - JIS_X_02081990
- 00000110 CYRLLIC_ISO88595
- 00000111 - LATIN_HEBREW_ISO88598
- 00001001 - PICTOGRAM_ENCODING
- 00001010 - ISO2022JP_MUSIC_CODES
- 00001101 - EXTENDED_KANJI_JISX_02121990
- 00001110 - KS_C_5601
- 00000001 - IA5_CCITT_T_50_ASCII_ANSI_X3_4
- 00000010 - OCTET_UNSPECIFIED_8BIT_BINARY_1
- 00000100 - OCTET_UNSPECIFIED_8BIT_BINARY_2
- 00000101 - JIS_X_02081990
- 00000110 - CYRLLIC_ISO88595
- 00000111 - LATIN_HEBREW_ISO88598
- 00001001 - PICTOGRAM_ENCODING
- 00001010 - ISO2022JP_MUSIC_CODES
- 00001101 - EXTENDED_KANJI_JISX_02121990
- 00001110 - KS_C_5601
另有两个保留供特殊用途:
And two reserved for special uses:
- 00001011 - RESERVED#1
- 00001100 - RESERVED#2
- 00001011 - RESERVED #1
- 00001100 - RESERVED #2
简而言之,如果你的二进制体是unicode(UTF-16),那么你将dataCoding设置为8.如果你的消息存储为GSM7,那么它通常是为0.
In short, if your binary body is unicode (UTF-16) you will set dataCoding to 8. If your message is stored as GSM7 then it will (usually) be 0.
这篇关于“data_coding”的含义SMPP中的字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!