title: Non English not supported mysql query from $.post jquery codeigniter
body: <p>I need to call ajax via <code>$.post</code> for a Non-English keyword but it ends up in encoded format and hence no results. I have my encoding as <code>UTF-8</code> and database collation as <code>utf8_unicode_ci</code>. Still having the problem. Sharing the Code and the result:</p>
  
  <pre><code>//Jquery
  
    $('form#frm_word').submit(function (e) {
          e.preventDefault();
          //var url = $(this).attr('action');
          var s = $('input#s').val();
          var url = '&lt;?php echo site_url('words/get_word'); ?&gt;' + '/' + s;
          $.post(url, function (o) {
              if (o.result == 1) {
                  console.log(o.words);
              }
          }, 'json');
      });
  
  Case url: http://localhost/subscription/words/get_word/আমি
  Result: SELECT * FROM `words` WHERE w_word LIKE 
  '%%E0%A6%86%E0%A6%AE%E0%A6%BF%'{"result":2}
  </code></pre>