php help is needed to set a cookie?

Name

New member
i have a php code that captures the values in an input box then another to retrieve that value, it works just fine if the text in the box was english text or numbers, but i entered arabic text in that box it retrieves some weird letters, the arabic text or whatever i write is perfectly saved in the cookie i opened the cookie and checked, but the problem is in retrieving what's in the cookie, here's the code for retrieving what's in the cookie:

<?php echo isset($cookie['txt'])? $cookie['txt'] : ''?>

can anybody help me with this?? i just wanna know how to retrieve what's in the cookie as it's in "utf-8" if it's possible
 
Back
Top