title: How to send unicode character sms into mobile using asp.net c#
body: <pre><code>SenditemsTableAdapter sen = new SenditemsTableAdapter();
  RegistrationTableAdapter reg = new RegistrationTableAdapter();
  SendSMS sendsms = new SendSMS();
  </code></pre>
  
  <p>Here using tableAdapter</p>
  
  <pre><code>DS.RegistrationDataTable rtable = reg.GetDataByUsername(Session["username"].ToString());
      if (rtable.Rows.Count &gt; 0)
      {
          DS.RegistrationRow rrow = (DS.RegistrationRow)rtable.Rows[0];
  
          int smscount = Convert.ToInt32(sen.Sumcredit(Session["username"].ToString()));
          string username = rrow.Username;
          // int smscount=0;
          string MainString2 = txtmobileno.Text;
          string[] Split2 = MainString2.Split(new Char[] { ',' });
          string sendid = rrow.Senderid;
          int CreditLmt = rrow.Creditlimit;
          if (smscount &lt;= CreditLmt)
          {
              if (rrow.Validitydate &gt;= Convert.ToDateTime(DateTime.Now.ToString()))
              {
                  for (int i = 0; i &lt; Split2.Length; i++)
                  {
                      int credit = txtmessage.Text.Length / 160;
                      credit++;
                      DateTime date = DateTime.Now;
                      SqlConnection connection2 = new SqlConnection(con);
                      connection2.Open();
                      SqlCommand cmd1 = null;
  
                      string str = " insert into [Senditems] values('" + username + "','" + sendid + "', '" + Split2[i] + "',N'" + txtmessage.Text + "','Request.Url.AbsolutePath',' Request.UserHostAddress','Request.Browser.Platform + Request.Browser.Browser', '" + credit + "','" + date + "')";
                      cmd1 = new SqlCommand(str, connection2);
                      cmd1.ExecuteNonQuery();
  
                      string message = Convert.ToString(SqlHelper.ExecuteScalar(con, CommandType.Text, "SELECT message FROM senditems WHERE id = (SELECT MAX(id)  FROM senditems)"));
  
                      sendsms.send(message, Split2[i], sendid);
                      connection2.Close();
                                         }
                  ScriptManager.RegisterStartupScript(this, this.GetType(), "", "&lt;script&gt;alert('Your message send successfully');&lt;/script&gt;", false);
                  reset();
              }
              else
              {
                  ScriptManager.RegisterStartupScript(this, this.GetType(), "", "&lt;script&gt;alert('Cant send sms because your validity is expired');&lt;/script&gt;", false);
  
              }
          }
          else
          {
              ScriptManager.RegisterStartupScript(this, this.GetType(), "", "&lt;script&gt;alert('Cant send sms because you dont have credit');&lt;/script&gt;", false);
          }
      }
  </code></pre>
  
  <p>In the button click events i have using " sendsms.send(txtmobileno.Text, Split2[i], sendid);" this method for send sms to mobile.</p>
  
  <pre><code> strUrl = "http://onlinesms.in/api/sendValidSMSdataUrl.php?login=" + user + "&amp;pword=" + pass +
                     "&amp;msg=" + HttpUtility.UrlEncode(Message) +
                     "&amp;senderid=" + sendId +
                     "&amp;mobnum=" + mobNum;
  
      WebRequest request = HttpWebRequest.Create(strUrl);
      HttpWebResponse response = (HttpWebResponse)request.GetResponse();
      Stream s = (Stream)response.GetResponseStream();
      StreamReader readStream = new StreamReader(s);
      string dataString = readStream.ReadToEnd();
      response.Close();
      s.Close();
      readStream.Close();
  </code></pre>
  
  <p>And using this url to send sms.I have insert message into table is properly and i can get message to mobile ok but getting message ???????????? like this . 
  I want get sms properly pls any bady help.</p>