14-09-16, 06:22 PM
سلام عليكم
I need to send SMS from vb.net program through a GSM modem that is connected to the computer. My code works normally in english language, but when I tried to send Arabic letter I received ???? on the destination device.
my code is as below
With ser
'.Encoding = System.Text.Encoding.UTF32
.Write("AT" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CSCS=HEX" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGF=1" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGS=" & ChrW(34) & phonenum & ChrW(34) & vbCrLf)
Threading.Thread.Sleep(1000)
.Write(message & ChrW(26))
End With
Note:- ser means serialport, message is a string from textbox object
و شكرا جزيلا
I need to send SMS from vb.net program through a GSM modem that is connected to the computer. My code works normally in english language, but when I tried to send Arabic letter I received ???? on the destination device.
my code is as below
With ser
'.Encoding = System.Text.Encoding.UTF32
.Write("AT" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CSCS=HEX" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGF=1" & vbCrLf)
Threading.Thread.Sleep(1000)
.Write("AT+CMGS=" & ChrW(34) & phonenum & ChrW(34) & vbCrLf)
Threading.Thread.Sleep(1000)
.Write(message & ChrW(26))
End With
Note:- ser means serialport, message is a string from textbox object
و شكرا جزيلا