|
Posted by RandyTh on 04/16/06 00:27
"Robin" <robin.niemeyer@gmx.net> wrote in message
news:44412d8c$0$11065$9b4e6d93@newsread4.arcor-online.net...
> Have you tried utf8encode($username)?
>
> RandyTh wrote:
>> I am trying to set the japanese characters in this useremail cookie.
>> The thing is sometimes the $HTTP_COOKIE_VARS['username'] returns me a
>> garbled string;
>> Do I have to encode first before I save it in the cookie?
>>
>> setcookie( "username", $username, time()+3600*24*30*12*5, "/",
>> www.mydomain.com, 0 );
>>
>> SK
>>
>utf8encode
For the setcookie, I remember we don't have to do anything about the
encoding.
'cause the function itself is taking care of the encodeing issue.
The thing is sometimes works and sometimes doesn't
I don't know why this is happening.
Shinya
[Back to original message]
|