Re: PHP garbled problem, UTF-8 (garbled), very full explanation and solution.
1.JS read Cookie's Chinese chaotic code problem
PHP to write cookie when you need to code the Chinese character for escape,
if the JS read the Chinese character will be a random code.
but PHP itself has no escape function. We write a new escape function:
[code]function escape ($str)
{
preg_match_all (