Share via


SmsEncoding Enum

Definition

This enumerated type is used to determine the encoding algorithm to send or calculate the length of an SmsTextMessage object.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband.

public enum class SmsEncoding
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SmsEncoding
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SmsEncoding
var value = Windows.Devices.Sms.SmsEncoding.unknown
Public Enum SmsEncoding
Inheritance
SmsEncoding
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
cellularMessaging sms

Fields

Name Value Description
Unknown 0

The data encoding is unknown.

Optimal 1

7-bit encoding if all characters can be represented, otherwise 2-byte Universal Character Set (UCS-2) encoding.

SevenBitAscii 2

Seven-bit ASCII encoding.

Unicode 3

Unicode encoding.

GsmSevenBit 4

Standard 7-bit GSM encoding.

EightBit 5

Standard eight bit encoding.

Latin 6

Latin encoding.

Korean 7

Korean encoding.

IA5 8

IA5 encoding.

ShiftJis 9

Shift-JIS encoding for the Japanese language.

LatinHebrew 10

Latin Hebrew encoding.

Remarks

The encodings are defined in sections 4.5.2 and 23.038 of the 3GPP2 specification C.S0015-B "Short Message Service (SM) for Wideband Spread Spectrum Systems".

Applies to