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
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GSM 03.38 character set
| Dec | 0 | 16 | 32 | 48 | 64 | 80 | 96 | 112 | |
| Hex | 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 | |
| 0 | 0 | @ | Δ | SP | 0 | ¡ | P | p | |
| 1 | 1 | £ | _ | ! | 1 | A | Q | a | q |
| 2 | 2 | $ | Φ | " | 2 | B | R | b | r |
| 3 | 3 | ¥ | Γ | # | 3 | C | S | c | s |
| 4 | 4 | è | Λ | ¤ | 4 | D | T | d | t |
| 5 | 5 | é | Ω | % | 5 | E | U | e | u |
| 6 | 6 | ù | Π | & | 6 | F | V | f | v |
| 7 | 7 | ì | Ψ | ' | 7 | G | W | g | w |
| 8 | 8 | ò | Σ | ( | 8 | H | X | h | x |
| 9 | 9 | Ç | Θ | ) | 9 | I | Y | i | y |
| 10 | A | LF | Ξ | * | : | J | Z | j | z |
| 11 | B | Ø | <ESC> | + | ; | K | Ä | k | ä |
| 12 | C | ø | Æ | , | < | L | Ö | l | ö |
| 13 | D | CR | æ | - | = | M | Ñ | m | ñ |
| 14 | E | Å | . | > | N | Ü | n | ü | |
| 15 | F | å | É | / | ? | O | § | o | à |
Some additional characters can be sent using the <ESC> code in the above table plus an additonal character
| You want to send ASCII | Send the following | |||||
|---|---|---|---|---|---|---|
| Character | Decimal | Hex | Characters | Hex | Decimal | |
| € | <ESC> e | 1B 65 | 27 101 | |||
| <FF> | 10 | 0C | <ESC> <LF> | 1B 0A | 27 10 | |
| [ | 91 | 5B | <ESC> < | 1B 3C | 27 60 | |
| / | 92 | 5C | <ESC> / | 1B 2F | 27 47 | |
| ] | 93 | 5D | <ESC> > | 1B 3E | 27 62 | |
| ^ | 94 | 5E | <ESC> ^ | 1B 14 | 27 20 | |
| { | 123 | 7B | <ESC> ( | 1B 28 | 27 40 | |
| | | 124 | 7C | <ESC> @ | 1B 40 | 27 64 | |
| } | 125 | 7A | <ESC> ) | 1B 29 | 27 41 | |
| ~ | 126 | 7E | <ESC> = | 1B 3D | 27 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.
本文介绍GSM03.38字符集及其在短信API中的应用,详细列出需特殊处理的字符及其HTTP编码方式,并提供额外字符的发送方法。
1239

被折叠的 条评论
为什么被折叠?



