roheta Posted May 21, 2020 Share Posted May 21, 2020 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now