SMS消息非ASCII字符编码 [英] SMS messages non ASCII characters encoding

查看:137
本文介绍了SMS消息非ASCII字符编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个诺基亚N900手机,当发送短信时,该小部件显示消息中剩余的字符数(以及发送整个消息所需的实际短消息数)。

I have a Nokia N900 phone, and when sending an SMS, the widget displays the number of characters left in the message (and the number of actual short messages needed to send the whole message).

我住在法国,在使用非ASCII字符编写邮件时,我注意到了以下奇怪的事情:

I live in France, where I noticed the following odd thing when writing messages with non-ASCII characters:


  • 一些非ASCII字符编码在一个字符/字节上,例如é,è,à,ù

  • 存在一些非ASCII字符,如ç,ê每个字符的大小为90字节/字节+ 1个字节

  • 第二个ç,ê等的存在仅消耗1个附加字节。

所以我想知道消息是如何编码的,因为我看不到上面的方案匹配我知道的传统编码iso-8859-1,UTF-8,UTF-16 ...)。

So I'm wondering how the messages are encoded, because I can't see the above scheme matching the traditional encodings I know (iso-8859-1, UTF-8, UTF-16...).

推荐答案

https://secure.wikimedia.org/wikipedia/en/wiki/SMS#Message_size

根据编码,SMS可以发送160/140 / 70个字符。如果使用任何非ASCII字符,整个消息将必须以UTF-16编码,因此您体验到了消费。

Depend on the encoding, SMS can send 160/140/70 characters. If any of the non-ASCII chars are used, the entire message would have to be encoded in UTF-16, hence the "consumption" you experienced.

这篇关于SMS消息非ASCII字符编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆