嗨,如何用usb 3g调制解调器发送波斯短信? [英] Hi,how to send persian sms with usb 3g modem ?

查看:78
本文介绍了嗨,如何用usb 3g调制解调器发送波斯短信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在发送消息示例سلام

但是在手机上收到了?????????

请帮帮我?谢谢



我的尝试:



我正在发送消息例如سلام

但是通过电话收到?????????

请帮助我?谢谢

解决方案

这是因为Unicode支持波斯字体,而不是ASCII或您的调制解调器(或连接的设备)可能支持的任何其他标准。如果您发送Unicode数据,则无法保证在另一侧呈现相同的内容,除非该设备也支持Unicode。



C#支持Unicode,char是一个2字节的UTF-16 Unicode代码点(或单位)。 .NET框架支持它,我相信你编写的两个应用程序也都基于.NET框架。这留下了渲染数据的方法。你在使用Console应用程序吗?控制台应用程序不支持字形(或图形;简单)支持大多数代码点。这就是为什么,当您在控制台应用程序中使用波斯语脚本时...

 静态  void  Main( string  [] args)
{
Console.WriteLine( سلام);
}

// 输出
?? ??



这是我声称的证据,虽然可能支持Unicode,但是,您需要阅读手册以了解如何在应用程序中打印Unicode字符。



阅读本文以了解更多内容:在.NET中读取和写入Unicode数据 [ ^ ]



有关char类型的更多信息: char(C#参考) [ ^ ]


请帮助AT命令发送短信arabix ro persain lanquage

I'm sending Message example "سلام "
but Is received on the phone "?????????"
please Help me?. thanks

What I have tried:

I'm sending Message example "سلام "
but Is received on the phone "?????????"
please Help me?. thanks

解决方案

That is because Persian fonts are supported in Unicode, not ASCII or any other standard that your modem (or connected devices) may be supporting. It is not guaranteed that if you send Unicode data, it would be rendered the same on other side, unless that device also supports Unicode.

C# supports Unicode, char is a 2-byte UTF-16 Unicode code point (or unit). .NET framework supports it, and I believe both of the applications that you have written also are based on .NET framework. That leaves the methods for rendering the data. Are you using Console application? Console application doesn't support the glyphs (or the graphics; simply) to support most of the code points. That is why, when you use Persian scripts in Console application...

static void Main(string[] args)
{
     Console.WriteLine("سلام");
}

// Output
????


Which is a proof for my claim, that although Unicode maybe supported, but, you need to read the manuals to understand how to print the Unicode characters in the application.

Read this article to understand a bit more on that: Reading and writing Unicode data in .NET[^]

For more on char type: char (C# Reference)[^]


please help for AT Command for send sms arabix ro persain lanquage


这篇关于嗨,如何用usb 3g调制解调器发送波斯短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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