Re: set cookie with non-english
| From: | Nisse Engström | Date: | Mon, 09 Oct 2006 23:21:23 +0000 |
| Subject: | Re: set cookie with non-english | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-242877@lists.php.net to get a copy of this message | ||
On Sun, 8 Oct 2006 00:10:49 +0300, "Ahmad Al-Twaijiry" wrote:
> BTW I want to access the (cookie or session) variable from php &
> javascript, so I don't think session is a solution
>
> so again, does anyone know how to resolve the problem so I can write
> the cookie output to UTF-8 html page ?
>
Unless I'm missing something, there is an elegant
solution to this.
return decodeURIComponent (dc.substring ( ... ));
--nfe