Results 1 to 3 of 3

Thread: Send SMS with Greek Characters

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2005
    Location
    Greece
    Posts
    61

    Post Send SMS with Greek Characters

    Hi..

    I am trying to fix one application for my business with Visual Basic 2010.
    With this application i am retrieving some records from my sql server 2008
    and put them in a datagrid. There I add some info in every line typing.

    Then I press a button and I send these lines as SMS.
    The language I use is Greek.

    The problem is that when I send the SMS with my ZTE MF195 3G USB Modem
    I get only Chinese characters.

    How I can solve this problem.

    The code I use to send the SMS is

    Code:
    If SerialPort1.IsOpen() Then
                    ToolStripStatusLabel1.Text = "Port " & SerialPort1.PortName & " is open"
                    SerialPort1.Write("AT" & vbCrLf)
                    Threading.Thread.Sleep(1000)
                    ToolStripProgressBar1.Value = ToolStripProgressBar1.Value + 25
                    SerialPort1.Write("AT+CMGF=1" & vbCrLf)
                    Threading.Thread.Sleep(1000)
                    ToolStripProgressBar1.Value = ToolStripProgressBar1.Value + 25
                    SerialPort1.Write("AT+CMGS=" + Chr(34) & DataGridView1.Item(1, i).Value.ToString() + Chr(34) & vbCrLf)
                    Threading.Thread.Sleep(1000)
                    ToolStripProgressBar1.Value = ToolStripProgressBar1.Value + 25
                    SerialPort1.WriteLine("TEST Μύνημα" & vbCrLf & Chr(26))
                    Threading.Thread.Sleep(1000)
                    ToolStripProgressBar1.Value = ToolStripProgressBar1.Value + 25
                    SerialPort1.Close()
                    ToolStripStatusLabel1.Text = "Port " & SerialPort1.PortName & " is close"
                    'MsgBox("Sent")
                Else
                    MsgBox("Not sent")
                End If
    I try to find some answer in the internet but I couldn't find something specific.
    Any help will be appreciated.

    Thank you

  2. #2
    Lively Member ShadowTzu's Avatar
    Join Date
    Oct 2014
    Location
    France
    Posts
    68

    Re: Send SMS with Greek Characters

    I think you need to use the right encoding:
    SerialPort1.Encoding = System.Text.Encoding.GetEncoding(28597)

    edit:
    find your "Code page" her:
    http://msdn.microsoft.com/en-us/libr...vs.110%29.aspx
    Last edited by ShadowTzu; Nov 24th, 2014 at 08:13 AM.

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2005
    Location
    Greece
    Posts
    61

    Re: Send SMS with Greek Characters

    Thank you for your help

    I try it but it didn't help.

    Sorry

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width