Jump to content

Prestashop1.7 cookies for storing vietnamese char


roheta

Recommended Posts

Hello,

I am facing issue to store  vietnamese char in prestashop 1.7 cookies 

i am trying to store Name Push Climbing | Nguyễn Văn Hưởng, Quận 2, in cookies 

$this->context->cookie->__set('selectedname', $selectedName['name']);

but it throws "Forbidden chars in cookie" error 

so i tried to the below code 

$newname = preg_replace('/[^\w\sæøåÆØÅöôÖÔ]/iu',"", $selectedName['name']);

but still no luck.. can smeone help me here plz ..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...