Joke Collection Website - Public benefit messages - Problems about Chinese coding in pdu

Problems about Chinese coding in pdu

if you want to send a short message, the landlord can set the TP-DCS logo to 8(UCS2 format), because even if all the short messages sent by users are ASCII and encoded by UCS2, the received mobile phone can be correctly interpreted!

attach the definition of TP-DCS logo:

TP-DCS (TP-data-coding-scheme):

bit No.7 654 321

bit No.7 and Bit No.6: generally set to ;

bit No.5: —the text is not compressed

1— the text is compressed by the GSM standard compression algorithm;

bit No.4: means that Bit No.1 and Bit No. are reserved bits and do not contain information type information;

1 means that Bit No.1 and Bit No. contain information type information;

Bit No.3 and bit No.2: —default alphabet (7-bit encoding)

1—8-bit,

1—USC2 (16-bit) encoding

11— reserved;

Bit No.1 and bit No.: -class ,

1-class 1,

1-class 2 (SIM card specific information),

11-class 3.