title: Jquery ajax() error : "Uncaught Syntax error, unrecognized expression: %2Cacpitool%2Caide"
body: <p>I have a error when I tried to send post data with <code>ajax()</code> method.</p>
  
  <p>I have a array with :</p>
  
  <ul>
  <li>acpitool</li>
  <li>aide</li>
  </ul>
  
  <p>I use <code>encodeURIComponent()</code> for passing the array with data: but the ajax method fail.</p>
  
  <p>Could you help me?<br>
  Thanks</p>
  
  <p>Edit :</p>
  
  <p>This is the ajax call</p>
  
  <pre><code>    $.ajax({
      url: 'AjaxSearch.php',
      dataType: 'json',
      data: param+"="+package,
      type: 'POST',
      success: function(data) {
      }
  });
  </code></pre>
  
  <p>package is a Array like this :</p>
  
  <pre><code>var package = new array("acpitool","aide");
  </code></pre>
  
  <p>Sometimes, I have this :</p>
  
  <pre><code>var package = new array("bonnie++");
  </code></pre>
  
  <p>For both, I have an error :</p>
  
  <blockquote>
    <p>Uncaught Syntax error, unrecognized expression: +</p>
  </blockquote>