Skip to content
OmniChannels.ai

SMS and telecom

What is UCS-2 encoding?

16-bit SMS encoding · data_coding 0x08

Definition

UCS-2 is the 16-bit character encoding SMS uses for text outside the GSM-7 alphabet, such as Arabic, Chinese or emoji. One SMS holds 70 UCS-2 characters, or 67 per segment in a multipart message.

3GPP TS 23.038 states that UCS-2 coded user data can consist of up to 140 octets, that is up to 70 characters. In SMPP v3.4, UCS-2 is signalled with data_coding = 0x08.

When a long message is split, the 6-octet user data header leaves 134 octets per segment, or 67 UCS-2 characters.

UCS-2 can only represent characters in the Basic Multilingual Plane. Most emoji lie outside it and are sent as UTF-16 surrogate pairs, so each emoji uses two of the 70 slots. Handsets display them correctly, but they consume more space.

For Arabic-speaking markets in the GCC, UCS-2 is the normal encoding for Arabic text. Budget for shorter messages and more segments than an equivalent English message.

Strictly, UCS-2 is a fixed 16-bit encoding limited to the Basic Multilingual Plane. Modern handsets decode the data as UTF-16, which is why emoji outside the plane still display correctly: they are encoded as a surrogate pair, taking two 16-bit units. Providers count length in those units, so a message of 35 emoji is already at the 70-unit limit.

Right-to-left display is handled by the handset. The SMS carries Arabic letters in logical order, and the phone's rendering engine joins and orders them. You do not reverse text yourself. Mixed text, such as an Arabic message with an English brand name, a number or a URL, can display unexpectedly if direction marks are missing, so preview on real devices.

Reduce cost without losing meaning: write Arabic messages tightly, drop optional greetings, shorten URLs on your own domain, and keep OTP messages under 70 characters so they fit in one segment. Arabic-Indic and Western digits both count as one unit each.

If you build SMPP integrations, set data_coding to 0x08 and encode the text as big-endian UTF-16 before submit_sm. A wrong byte order or encoding produces garbled text, which is the most common Arabic SMS bug.

Compatibility is rarely a problem on current handsets, but legacy systems still cause trouble. Databases, CSV files and old SMS software may store text in an encoding that damages Arabic. Save campaign files as UTF-8, and check the first rows after import before sending thousands.

Example

An Arabic OTP of 60 characters fits in 1 SMS; a 140-character Arabic message needs 3 segments (67 + 67 + 6).

Frequently asked questions

Is UCS-2 the same as Unicode SMS?

Unicode SMS is the everyday name for an SMS sent using UCS-2. The encoding is the technical mechanism; Unicode SMS is the result.

How many Arabic characters fit in one SMS?

70 in a single message and 67 per part once it is split into several segments.

Do emoji use more space in an SMS?

Yes. Most emoji are encoded as two 16-bit units, so each takes two of the 70 slots, and any emoji forces the entire message into UCS-2.

Sources