F
F. GSM Alphabet
Standard SMS can contain 160 characters. However, the characters typed must be part of the so-called 7-bit
default alphabet as specified by GSM 3.38. As shown in the table below, this alphabet contains all ASCII
characters and some accented characters.
For example, u umlaut (ü) and e with grave (è) are in this set. Using any character not in this set will force the
SMS to be a Unicode SMS, in which case the length of the SMS will be limited to 70 characters.
Note that the following characters count as two characters: { } [ ] ~ | \ and the Euro symbol €. As you
can see in the table below, this is because the codes for these characters must be prefaced by the escape code
(0x1B).
The table below shows the 7-bit default alphabet as specified by GSM 03.38. The corresponding ISO-8859-1
decimal codes are shown in the rightmost column. Note that the euro sign (€) is also included.
Hex Dec Character Name Character ISO-8859-1 DEC
0x00 0 COMMERCIAL AT @ 64
0x01 1 POUND SIGN £ 163
0x02 2 DOLLAR SIGN $ 36
0x03 3 YEN SIGN ¥ 165
0x04 4 LATIN SMALL LETTER E WITH GRAVE
è
232
0x05 5 LATIN SMALL LETTER E WITH ACUTE
é
233
0x06 6 LATIN SMALL LETTER U WITH GRAVE
ù
249
0x07 7 LATIN SMALL LETTER I WITH GRAVE
ì
236
0x08 8 LATIN SMALL LETTER O WITH GRAVE
ò
242
0x09 9 LATIN CAPITAL LETER C WITH CEDILLA Ç 199
0x0A 10 LINE FEED 10
0x0B 11 LATIN CAPITAL LETTER O WITH STROKE Ø 216
0x0C 12 LATIN SMALL LETTER O WITH STROKE Ø 248
0x0D 13 CARRIAGE RETURN 13
0x0E 14 LATIN CAPITAL LETTER A WITH RING ABOVE Å 197
0x0F 15 LATIN SMALL LETTER A WITH RING ABOVE Å 229
0x10 16 GREEK CAPITAL LETTER DELTA
Δ
0x11 17 LOW LINE - 95
0x12 18 GREEK CAPITAL LETTER PHI
Φ
0x13 19 GREEK CAPITAL LETTER GAMMA
Γ
0x14 20 GREEK CAPITAL LETTER LAMBDA
Λ
0x15 21 GREEK CAPITAL LETTER OMEGA
Ω
0x16 22 GREEK CAPITAL LETTER PI
Π
0x17 23 GREEK CAPITAL LETTER PSI
Ψ
0x18 24 GREEK CAPITAL LETTER SIGMA
Σ
0x19 25 GREEK CAPITAL LETTER THETA
Θ
0x20 26 GREEK CAPITAL LETTER XI
Ξ
0x1B 27 ESCAPE TO EXTENSION TABLE
0x1B0A 27 10 FORM FEED 12
0x1B14 27 20 CIRCUMFLEX ACCENT ^ 94