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 5

Standard eight bit encoding.

GsmSevenBit GsmSevenBit GsmSevenBit GsmSevenBit GsmSevenBit 4

Standard 7-bit GSM encoding.

IA5 IA5 IA5 IA5 IA5 8

IA5 encoding.

Korean Korean Korean Korean Korean 7

Korean encoding.

Latin Latin Latin Latin Latin 6

Latin encoding.

LatinHebrew LatinHebrew LatinHebrew LatinHebrew LatinHebrew 10

Latin Hebrew encoding.

Optimal Optimal Optimal Optimal Optimal 1

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

SevenBitAscii SevenBitAscii SevenBitAscii SevenBitAscii SevenBitAscii 2

Seven-bit ASCII encoding.

ShiftJis ShiftJis ShiftJis ShiftJis ShiftJis 9

Shift-JIS encoding for the Japanese language.

Unicode Unicode Unicode Unicode Unicode 3

Unicode encoding.

Unknown Unknown Unknown Unknown Unknown 0

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