You are here: Re: how can i set japanese string in the cookie « PHP Programming Language « IT news, forums, messages
Re: how can i set japanese string in the cookie

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация