查找可以在短信中发送的有效字符列表 [英] Looking for a list of valid characters that can be sent in sms text messages

查看:135
本文介绍了查找可以在短信中发送的有效字符列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用SMS聚合器的网络API来发送和接收短信。不是所有的字符都是有效的,当我试图发送一个消息,比如说,一个哈希标记#它失败。

I've been working with an SMS aggregator's web api to send and receive text messages. Not all characters are valid, and when I attempt to send a message with, say, a hash mark # it fails.

我需要清理字符串,但我找不到有效的列表,什么字符是好的。 Google不是太大帮助 - 也许我在寻找错误的条款。

I need to clean the strings before I send them but I cannot find a valid list of what characters are good. Mr. Google isn't much help - maybe i'm looking for the wrong terms.

我已经淘汰了api手册,并已通过电子邮件向公司发送了我的问题,但没有答案。

I have already scoured the api manual, and have emailed the company with my question, but there are no answers.

我期望不同的手机可以处理不同的字符列表...例如,iPhone应该处理各种各样的字符,但我的旧nokia翻盖手机可能只处理几十个字符超出字母数字。

I expect that different phones can handle different lists of characters... eg an iPhone should handle a wide range of characters, but my old nokia flip phone will probably only handle a couple dozen characters beyond the alphanumeric. I'll need the lowest common denominator.

推荐答案

这取决于你的聚合器。 默认短信字符集仅限于拉丁语和一些特殊字母(包括哈希标记),其他字符以unicode或使用锁定移位表机制发送。但是你正在使用api来发送消息,所以所有这些事情都是无效的。我建议继续询问您的聚合器帮助,可能他们手动阻止某些字符。

This depends on your aggregator. Default sms charset is limited to latin and some special letters only (including hash mark), others are sent in unicode or using locking shift table mechanism. But you are using an api to send messages, so all these things are incapsulated. I suggest continuing asking your aggregator for help, probably they block some characters manually.

这篇关于查找可以在短信中发送的有效字符列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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