如何使用 clickatell 用希伯来语发送短信
如何通过 Clickatell 发送希伯来语短信?
它以乱码形式到达设备。
How can I send an SMS in hebrew through Clickatell?
It arrives on the device as gibberish.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我找不到任何有效的示例,所以我编写了自己的示例:
试试这个:
I couldn't find any working example so, i wrote my own:
Try this:
是unicode的吗? 如果我没记错的话,它们需要将 unicode 转义为十六进制表示形式。 这应该在他们的文档中。
然而,当我这样做时,我发现这并不是唯一的问题,许多手机不支持正确显示 unicode 字符。
此外,发送 unicode 可能会产生更高的成本,因为它可能会被分割。
Is it in unicode ? If I remember correctly they require unicode to be escaped into hexadecimal representation. This should be in their docs.
However, I found out when I did this that this is not the only issue, many phones do not support displaying unicode characters properly.
Also, sending unicode may incur a higher cost since it may be split up.
将您的消息编码为 unicode,请参阅此常见问题解答页面
Encode your message as unicode, see this FAQ page for details.
遇到同样的问题...您需要编码为 unicode,然后转换为十六进制。 奇怪的是,您需要获取最后一个值并将其附加到前面才能使其正常工作。 我通过将我的代码结果与他们的在线工具的输出进行比较发现了这一点。
Ran into the same issue... you need to encode to unicode and then convert to hex. The strange thing is that you need to take the last value and append it to the front in order to get it to work. I found this out by comparing the results of my code against the output of their online tool.
我对阿拉伯语使用了以下逻辑。IT 需要更多测试。 语言是VB.Net
<代码> <代码>
>
这是转换部分
私有函数 ToUnicode(ByVal strVal As String)
I used following logic for arabic .. IT needs more testing . Language is VB.Net
Here is the conversion part
Private Function ToUnicode(ByVal strVal As String)