Welcome Guest, Not a member yet? Register   Sign In
cart doesn't read arabic
#1

[eluser]elombashy[/eluser]
hiii for all..

I have this codeigniter site that is in arabic and i wanted to add the cart shopping to it, but i found that this cart doesn't accept arabic letters. why is that?
i had the database unicode utf-8 and the site works perfect along with mysql.

what do u advise?
#2

[eluser]WanWizard[/eluser]
Code:
class CI_Cart {

    // These are the regular expression rules that we use to validate the product ID and product name
    var $product_id_rules    = '\.a-z0-9_-'; // alpha-numeric, dashes, underscores, or periods
    var $product_name_rules    = '\.\:\-_ a-z0-9'; // alpha-numeric, dashes, underscores, colons or periods

If you want to accept other characters, you have to modify $this->cart->product_id_rules and $this->cart->product_name_rules after you have loaded the cart library.
#3

[eluser]elombashy[/eluser]
thanks for replay.

OK.. that's fine, i Got u and you got my answer!!

thanks a lot..




Theme © iAndrew 2016 - Forum software by © MyBB