title: how to send arabic sms with at-command in c#
body: <p>How can I send Arabic SMS with the <code>at</code> command in C#? When I send Arabic messages it shows incorrect characters.</p>
  
  <p>I tried using this code:</p>
  
  <pre><code>serialPort1.BaseStream.Flush();
  
              string cb = char.ConvertFromUtf32(26);
  
              System.Threading.Thread.Sleep(2000);
  
              this.serialPort1.Write("AT+CMGF=1\r");
              this.serialPort1.Write("AT+CSCA=servicecenter\r\n");//Ufone Service Center
  
              this.serialPort1.Write("AT+CSCS=\"" + "HEX" + "\"\r\n");
              this.serialPort1.Write("AT+CSMP=\"" + 1 + "," + 167 + "," + 0 + ","  +8+ "\"\r\n");
              this.serialPort1.Write("AT+CMGS=\"" + textBox1.Text + "\"\r\n");// message sending
              this.serialPort1.Write(textBox2.Text + cb);//message text
  </code></pre>
  
  <p>and I wrote 06450631062D06280627 in the text box.</p>