CodeIgniter Forums
why codeigniter doesn't accept accented characters in cart class ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: General Help (https://forum.codeigniter.com/forum-24.html)
+--- Thread: why codeigniter doesn't accept accented characters in cart class ? (/thread-63160.html)



why codeigniter doesn't accept accented characters in cart class ? - Osqui - 10-01-2015

I fixed the "error" using the convert_accented_characters function, for example:
PHP Code:
$insert = array(
 
 'id'    => $id,
 
 'qty'   => $quantity,
 
 'price' => $product->price,
 
 'name'  => convert_accented_characters($product->name),
); 

But I wanted to know why codeigniter doesn't accept these characters. It is for safety? or a compatibility issue?


RE: why codeigniter doesn't accept accented characters in cart class ? - ignitedcms - 10-01-2015

Better stop using the cart class anyway, it is soon to be deprecated.