title: sending unicoded strings in ajax.post request
body: <p>I am using "livechatstarterkit" for chatting functionality in my mvc web app. But my web application is in a right to left language and users have names in Persian.</p>
  
  <p>The problem here is that when a user with Persian name log-in as operator his name encoded cause of the following script:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          var intervalId;
          var chatId = '@(Model)';
          var lastMsgId = 0;
          var opname = '@ViewBag.opname';
          $(document).ready(function () {
              getMsgs();
              intervalId = window.setInterval(function () {
                  getMsgs();
              }, 3210);
  
              $('#chatText').keyup(function (e) {
                  if (e.keyCode == 13) {
                      $.post('/chat/addmsg', { id: chatId, from: opname, msg: $('#chatText').val() }, function (data) { getMsgs(); });
                      $('#chatText').val('');
                  }
              });
  .....
  </code></pre>
  
  <p>But as I debug my app, I see the messages from operator are not beign sent, in fact the <code>$.post('/chat/addmsg'....</code> code is not executed and request is not sent to proper action.</p>
  
  <p>here is some exaple of opname in jscript : "<code>&amp;#1662;&amp;#1588;&amp;#1578;&amp;#1740;&amp;#1576;&amp;#1575;&amp;#1606;&amp;#1740;</code>"</p>