title: How to send Unicode message from a GSM device using AT command
body: <p>I have an existing desktop application using C# .Net for sending and receiving messages using GSM device/modem. Everything is ok, but now I'm facing some problems:</p>
  
  <p>1 - I can't send more than 160 characters in a message.</p>
  
  <p>2 - I can't send Unicode messages (my language is Bengali). I have already tried to converting to hexadecimal, but it's sending another language.</p>
  
  <p>This is what I've tried so far:</p>
  
  <pre><code>port.WriteLine("AT+CSCS=\"UCS2\"\n");
  Thread.Sleep(100);
  port.WriteLine("AT+CMGF=1"+Environment.NewLine);
  Thread.Sleep(100);
  port.WriteLine("AT+CMGS=\""+number+"\"");
  Thread.Sleep(100);
  port.WriteLine(message+char.ConvertFromUtf32(26)+Environment.NewLine);
  Thread.Sleep(100);
  port.Write(new byte[]{26},0,1);
  Thread.Sleep(100);
  </code></pre>