asp.net AT命令不在阿拉伯语中工作? [英] asp.net AT command not working in arabic?

查看:71
本文介绍了asp.net AT命令不在阿拉伯语中工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经制作了一个应用程序,其中我使用AT命令通过手机发送短信它正在工作,当我尝试写任何其他语言,如阿拉伯语乌尔都语,然后尝试发送它成功发送但在手机上它显示所有单词????????????????像这样

i have make a application in which i have used a AT Command For sending SMS by cell phone it is working just when i try to write any other language like Arabic Urdu and then try to send it sending successfully but on cell phone it shows all words ????????????????? like this

推荐答案

这是因为您使用的是电子邮件(正文)和主题的默认编码。您必须在下一个示例中使用UTF8编码:



This is because you are using the default encoding for your email message (body) and subject. You have to use UTF8 encoding for both like in the next example:

MailMessage message = new MailMessage(from, to);
message.SubjectEncoding = System.Text.Encoding.UTF8;
message.BodyEncoding =  System.Text.Encoding.UTF8;
//...


这篇关于asp.net AT命令不在阿拉伯语中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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