Character Encoding

 

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
CharacterDescriptionEncode as
CRCarriage Return%0D
LFLine Feed%0A
SPSpace

%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
CharacterDescriptionEncode 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.

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

 

 

 

 

GSM 03.38 character set

The GSM 03.38 Default 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

Sending additional characters on GSM phones
You want to send ASCII Send the following
Character DecimalHex CharactersHexDecimal
   <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.

 

 

 

 

 

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值