Cinterion
®
ENS22-E AT Command Set
1.6 Supported character sets
ENS22-E_ATC_V01.000
19/02/11
Page 20 of 189
If the Customer Application receives a code where a symbol is not represented in Figure
table of GSM 7 bit default alphabet
it shall display the character shown in the main GSM 7 bit default alphabet
table (see Figure
Main character table of GSM 7 bit default alphabet
1.6.2
UCS2 and GSM character coding and conversion
This section provides basic information on how to handle input and output character conversion, e.g. for SMS
text mode, if the character representation of UE and Customer Application differ, i.e. if the Data Coding Scheme
and the TE character set use different mappings.
1.6.2.1
Output of SIM data (UE to TE)
Note: The ratio of SIM bytes to output bytes is given in parentheses.
Case 1
Every GSM character is sent to the TE as it is (8-bit value with highest bit set to zero).
Example: 47'H, 53'H, 4D'H
→
47'H, 53'H, 4D'H, displayed as "GSM"
Case 2
Every data byte is sent to the TE as 2 IRA characters each representing a halfbyte.
Example: B8'H (184 decimal)
→
42'H, 38'H, displayed as "B8"
Case 3
Every 16-bit UCS2 value is sent to the TE as 4 IRA characters.
Example: C4xA7'H (50343 decimal)
→
43'H, 34'H, 41'H, 37'H, displayed as "C4A7"
Problem: An odd number of bytes leads to an error because there are always two bytes needed for each UCS2
character
Case 4
Every GSM character is sent to the TE as 4 IRA characters to show UCS2 in text mode.
Example: 41'H ("A")
→
30'H, 30'H, 34'H, 31'H, displayed as "0041"
Case 5
Every data byte is sent to the TE as IRA representation of UCS2 (similar to case 4).
Example: B2'H
→
30'H, 30'H, 42'H, 32'H, displayed as "00B2"
Case 6
Every 16-bit value is sent to the TE as IRA representation of it. It is assumed that number of bytes is even.
Example: C3x46'H
→
43'H, 33'H, 34'H, 36'H, displayed as "C346"
Used character set
DCS = 7 bit
GSM
DCS = 8 bit
Data
DCS = 16 bit
UCS2
GSM
Case 1
GSM (1:1)
Case 2
8 bit to IRA (1:2)
Case 3
UCS2 to IRA (2:4)
UCS2
Case 4
GSM to IRA (1:4)
Case 5
8 bit to IRA (1:4)
Case 6
UCS2 to IRA (2:4)