次の方法で共有


SMS_DATA_ENCODING (Compact 2013)

3/26/2014

This enumeration specifies the data encoding that is primarily used for outgoing text message types in SmsSendMessage calls. Refer to GSM specification 03.40 "Digital cellular telecommunications system (Phase 2+); Technical realization of the Short Message Service (SMS)" for details.

Syntax

enum SMS_DATA_ENCODING {
    SMSDE_OPTIMAL=0,
    SMSDE_GSM,
    SMSDE_UCS2,
};

Elements

  • SMSDE_OPTIMAL
    Data encoding that fully represents all of the characters in the least amount of space.
  • SMSDE_GSM
    The default GSM 7-bit encoding specified in GSM specification 03.38 "Digital cellular telecommunications system (Phase 2+); Alphabets and language-specific information." Characters that cannot be represented by this encoding will not be correctly transmitted.
  • SMSDE_UCS2
    Unicode UCS2 encoding.

Remarks

This character encoding should be supported for CDMA2000 Short Message Service (SMS). If the Unicode and GSM characters are not supported by the network, the characters will be remapped to ASCII, if feasible, to maintain compatibility.

Because the 7-bit ASCII character set is not a superset of the 7-bit GSM encoding, you will not be able to remap some characters. In those cases, inserting filler characters will allow you to control how unsupported characters are handled.

Requirements

Header

sms.h

See Also

Reference

Short Message Service Enumerations
SmsSendMessage