Character Encoding

来源:互联网 发布:李鸿章 知乎 编辑:程序博客网 时间:2024/05/14 08:30

 

GSM 03.38 character set

http://www.csoft.co.uk/sms/character_sets/gsm.htm

 


ASCII
GSM 03.38
Unicode
HTTP encoding

 

Unicode

http://www.unicode.org/

 

HTTP encoding of special characters

Why encode?

If you are sending messages to the It's Arrived server using the "HTTP to SMS" API then the following special characters need to be treated specially in your HTTP POST:

These special characters must be encoded in HTTP POST submissions
Character Description Encode as CRCarriage Return%0DLFLine Feed%0ASPSpace

%20

"quotation mark%22#hash%23%percent%25&ampersand%26,comma%2C.period%2E/forward slash%2F:colon%3A;semi-colon%3B<less than%3C=equal%3D>greater than%3E?question mark

%3F

¡inverted exclamation mark%A1£Pound%A3#currency sign%A4¥Yen%A5§paragraph sign%A7 Character Description Encode as Äcapital A with diaeresis%C4Åcapital A with ring%C5àsmall a grave%E0äsmall a with diaeresis%E4åsmall a with ring%E5Æcapital diphthong AE%C6Çcapital C cedilla%C7Écapital E acute%C9èsmall e grave%E8ésmall e acute%E9ìsmall i grave%ECÑcapital N with tilde%D1ñsmall n with tilde%F1òsmall o grave%F2ösmall o with diaeresis%F6Øcapital O with storke%D8Öcapital O with diaeresis%D6Ücapital U with diaeresis%DCùsmall u grave%F9üsmall u with diaeresis

%FC

ßsmall s sharp%DF


The characters shown below cannot be sent to mobile/cell phones unless those phones support Unicode. Most European and American phones don't support Unicode.

Character Description [left square bracket/back slash]right square bracket^caret`grave accent{left curly brace|pipe or vertical bar}right curly brace~tildeDELDelete

 

 

 

 

GSM 03.38 character set

The GSM 03.38 Default Character Set Dec 0163248648096112 Hex01020304050607000@ΔSP0¡P p11£_!1AQaq22$Φ"2BRbr33¥Γ#3CScs44èΛ¤4DTdt55éΩ%5EUeu66ùΠ&6FVfv77ìΨ'7GWgw88òΣ(8HXhx99ÇΘ)9IYiy10ALFΞ*:JZjz11BØ<ESC>+;KÄkä12CøÆ,<LÖlö13DCRæ-=MÑmñ14EÅ .>NÜnü15FåÉ/?O§oà

Some additional characters can be sent using the <ESC> code in the above table plus an additonal character

Sending additional characters on GSM phones You want to send ASCII   Send the following Character Decimal Hex   Characters Hex Decimal €   <ESC> e1B 6527 101<FF>100C <ESC> <LF>1B 0A27 10[915B <ESC> <1B 3C27 60/925C <ESC> /1B 2F27 47]935D <ESC> >1B 3E27 62^945E <ESC> ^1B 1427 20{1237B <ESC> ( 1B 2827 40|1247C <ESC> @1B 4027 64}1257A <ESC> )1B 2927 41~1267E <ESC> =1B 3D27 61

This table shows the default GSM character set, but does not indicate how to encode the characters when you wish to send them in an HTTP POST message. See Character Encoding for that information.