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 Robin on 04/15/06 20:29

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
>
>

 

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

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