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/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: why codeigniter doesn't accept accented characters in cart class ? (/showthread.php?tid=63160)



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.