惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
爱范儿
爱范儿
T
The Exploit Database - CXSecurity.com
量子位
T
Tailwind CSS Blog
T
Threatpost
The GitHub Blog
The GitHub Blog
AWS News Blog
AWS News Blog
云风的 BLOG
云风的 BLOG
K
Kaspersky official blog
P
Proofpoint News Feed
博客园 - 司徒正美
L
LangChain Blog
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
罗磊的独立博客
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
S
Secure Thoughts
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
H
Hacker News: Front Page
T
Troy Hunt's Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
P
Proofpoint News Feed
T
Tor Project blog
T
The Blog of Author Tim Ferriss
I
Intezer
P
Privacy & Cybersecurity Law Blog
美团技术团队
N
Netflix TechBlog - Medium
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost
Application and Cybersecurity Blog
Application and Cybersecurity Blog
G
Google Developers Blog
Attack and Defense Labs
Attack and Defense Labs
T
Tenable Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
Last Week in AI
Last Week in AI

博客园 - Levins Dai

我知道你不知道我知道你不知道我知道你不知道 Pixel doubling, why's it there? Why does current running process always be mapped to slot 0? 金刚的爱 - Levins Dai - 博客园 What's the difference between GetThreadPriority and CeGetThreadPriority? How to send class 0 message on Windows Mobile 5.0? 新年音乐会 Windows Mobile 文字短信的长度 - Levins Dai 国家地理选美中国 木兰秋猎 - Levins Dai - 博客园 30 years anniversary of Microsoft Back from off site meeting 摄影是什么? Talking about Talking about 谈论谈论好男人 关于Naming的故事 两个星期,两条旧闻 On Board Day 3G和Windows XP 是卖书还是送书?
再说GSM SMS文字短信编码与长度
Levins Dai · 2005-11-25 · via 博客园 - Levins Dai

前面提到过,GSM SMS可以采用7 bits的编码方式,从而在1120 bits的长度里可以容纳160个字符。但有一点没有说清楚(或者说得不正确),理论上ASCII字符集的前127个字符都可以采用这种方式编码,但事实却不是如此。最明显的一个例子是[,ASCII编码为0x5B,但在GSM SMS中却是用两个7 bits来表示。所以当你编辑短信输入[(或者])的时候,就会很奇怪的发现,短信的长度多了14个bits,相当于是两个普通字符的长度。所以,GSM SMS的文字编码和ASCII编码并不是一一对应的,这里有一张完整的列表。

这些奇怪的字符被称之为GSM Extension Characters,更多的情况是,不少的手机根本没有对它们进行特别的处理,而是一看得这些字符,就统统转成UCS2,这也算是一个偷懒省事的做法。