SmsEncoding SmsEncoding SmsEncoding SmsEncoding SmsEncoding Enum


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


This functionality is only available 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: device apps.

public : enum class SmsEncoding
enum class winrt::Windows::Devices::Sms::SmsEncoding : int32_t
public enum SmsEncoding
Public Enum SmsEncoding
var value = Windows.Devices.Sms.SmsEncoding.eightBit;
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
sms cellularMessaging


EightBit EightBit EightBit EightBit EightBit

Standard eight bit encoding.

GsmSevenBit GsmSevenBit GsmSevenBit GsmSevenBit GsmSevenBit

Standard 7-bit GSM encoding.


IA5 encoding.

Korean Korean Korean Korean Korean

Korean encoding.

Latin Latin Latin Latin Latin

Latin encoding.

LatinHebrew LatinHebrew LatinHebrew LatinHebrew LatinHebrew

Latin Hebrew encoding.

Optimal Optimal Optimal Optimal Optimal

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

SevenBitAscii SevenBitAscii SevenBitAscii SevenBitAscii SevenBitAscii

Seven-bit ASCII encoding.

ShiftJis ShiftJis ShiftJis ShiftJis ShiftJis

Shift-JIS encoding for the Japanese language.

Unicode Unicode Unicode Unicode Unicode

Unicode encoding.

Unknown Unknown Unknown Unknown Unknown

The data encoding is unknown.


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".