title: CodeIgniter urlencode/decode
body: <p>Controller</p>
  
  <pre><code>function delete_payment($payment_id)
  {
      $this-&gt;sale_lib-&gt;delete_payment($payment_id);
      $this-&gt;_reload();
  }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>   &lt;?php echo anchor("sales/delete_payment/$payment_id",'['.$this-&gt;lang-&gt;line('common_delete').']');?&gt;
  </code></pre>
  
  <p>It is possible for $payment_id to be something like "Gift Card:1" or "Gift Card:12345983984334"</p>
  
  <p>When it is Gift Card:1 the url is automatically decoded and the delete function works, when it is a longer string such as Gift Card:12345983984334" the url is NOT decoded.</p>
  
  <p>URLS are:</p>
  
  <p><a href="http://localhost/index.php/sales/delete_payment/Gift%20Card:1" rel="nofollow">http://localhost/index.php/sales/delete_payment/Gift%20Card:1</a></p>
  
  <p><a href="http://localhost/index.php/sales/delete_payment/Gift%20Card:12345983984334" rel="nofollow">http://localhost/index.php/sales/delete_payment/Gift%20Card:12345983984334</a></p>
  
  <p>First one works, second one doesn't</p>