Skip to content

SGIPDeliver的消息内容需要根据MessageCoding来解码 #3

Description

@ywshzh

当上行短信内容是中文或者其他特殊字符时,会显示乱码,需要根据MessageCoding解码,如:
if msg_codeing == 8: msg_content = msg_content.decode('utf-16-be')
下行短信也需要根据要发送的字符去选择编码方式,指定gbk不是最好的方式,如纯可见字符可选择默认编码方式0,可减少一半的短信长度

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions